summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/WriterELF.cpp
Commit message (Collapse)AuthorAgeFilesLines
* This update does the following:Sid Manning2012-10-181-5/+19
| | | | | | | | | | | * Moves enum Scope from DefinedAtom.h to Atom.h * Adds scope method to AbsoluteAtom class * Updates YAML to print scope of AbsoluteAtoms * Update Native Reader/Writer to handle this new, "attribute" * Adds testcase Reviewed and approved by Nick Kledzik llvm-svn: 166189
* * Add relocation reference support for Hexagon and PowerPC.Sid Manning2012-10-091-1/+2
| | | | | | | | | | | - Hexagon has many relocation types, this patch covers just a subset, more will be added. - PowerPC support was added so that we can verify mixed endian environments. * Add some basic test cases * Update ldd-core to accept -endian flag llvm-svn: 165477
* Fix incorrect setting of EI_DATASid Manning2012-10-051-1/+3
| | | | llvm-svn: 165310
* Added missing break in StockSectionChunk constructor.Hemant Kulkarni2012-10-031-3/+2
| | | | | | | | Removed architecture dependent .sbss section creation. Updated test case to show the change in section types and removal of a sbss section. llvm-svn: 165181
* Emit symbol tables.Hemant Kulkarni2012-10-011-273/+449
| | | | | | | Reorganize to derive all sections from SectionChunk. Construct section table header from SectionChunk. llvm-svn: 164981
* Add case for typeConstant in SectionChunkSid Manning2012-09-261-1/+7
| | | | llvm-svn: 164732
* This patch makes use of recently added relocation reference data. The bulkSid Manning2012-09-251-2/+43
| | | | | | | | | | | | of this is derived from the Mach-O writer. Reviewed by: Nick Kledzik. * Adds loop to SectionChunk::write traverse references calling the writer's fixup handler, applyFixup. * Adds method, ELFWriter::buildAtomToAddressMap to that creates a mapping from an atom to its runtime address. * Adds method, ELFWriter::addressOfAtom to return the runtime address of the atom. llvm-svn: 164618
* ELF support for LLD writer. The writer at present emits ELF header and section Hemant Kulkarni2012-09-141-8/+835
| | | | | | | | | | 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
* Major refactoring: Remove Platform concept. In its place there are Nick Kledzik2012-05-311-0/+35
now Reader and Writer subclasses for each file format. Each Reader and Writer subclass defines an "options" class which controls how that Reader or Writer operates. llvm-svn: 157774
OpenPOWER on IntegriCloud