Files
clang-p2996/lld/lib/ReaderWriter/ELF/WriterOptionsELF.cpp
Hemant Kulkarni 927bbc2871 ELF support for LLD writer. The writer at present emits ELF header and section
table header. Skeleton code for ReferenceKinds.
Credits:
Doxygen by  Michael Spencer.
Origianl implementation from Macho by Sidney Manning.
Templatization, implementation of section header chunks, string table, ELF header by Hemant Kulkarni.

llvm-svn: 163906
2012-09-14 16:11:34 +00:00

29 lines
744 B
C++

//===- lib/ReaderWriter/ELF/WriterOptionsELF.cpp ----------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lld/ReaderWriter/WriterELF.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/system_error.h"
namespace lld {
StringRef WriterOptionsELF::entryPoint() const {
if (_type == llvm::ELF::ET_EXEC)
return "start";
return StringRef();
}
} // namespace lld