summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/HeaderChunks.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old ELF linker.Rafael Espindola2016-02-281-154/+0
| | | | | | I think it is clear by now that the new linker is viable. llvm-svn: 262158
* ELF: Split HeaderChunks.h to HeaderChunks.{h,cpp}.Rui Ueyama2015-04-141-179/+9
| | | | llvm-svn: 234932
* Fix formatting.Rui Ueyama2015-03-271-3/+3
| | | | llvm-svn: 233418
* Remove dead code.Rui Ueyama2015-03-271-28/+0
| | | | | | | I actually spend my time to understand this piece of code and then realized that this is all dead. llvm-svn: 233417
* ELF: Add override.Rui Ueyama2015-03-271-27/+21
| | | | | | | Some virtual member functions in ELF directory don't have virtual type specifier. Add override to them. llvm-svn: 233406
* ELF: Remove blank doPreFlight and finalize member functions.Rui Ueyama2015-03-271-5/+0
| | | | | | Make these functions non-pure and define the default implementations. llvm-svn: 233405
* Rename ELFLinkingContext instances "ctx" intead of "context".Rui Ueyama2015-03-271-10/+9
| | | | llvm-svn: 233344
* Remove "inline" from inlined functions.Rui Ueyama2015-03-041-12/+8
| | | | llvm-svn: 231271
* [ELF] Rename align2 to alignment.Shankar Easwaran2014-11-301-9/+9
| | | | | | No change in functionality. llvm-svn: 222975
* [ELF] Rename MergedSection to OutputSection.Shankar Easwaran2014-11-301-4/+3
| | | | | | No change in functionality. llvm-svn: 222972
* Revert "[ELF] Rename MergedSection to OutputSection."Shankar Easwaran2014-11-191-3/+4
| | | | | | | | | This reverts commit r222310. Not sure which commit is the cause of the failure on the darwin bot. Will need to revert my changes and commit one change at a time. llvm-svn: 222330
* [ELF] Rename MergedSection to OutputSection.Shankar Easwaran2014-11-191-4/+3
| | | | | | No change in functionality. llvm-svn: 222310
* [ELF] Fix segment alignment.Shankar Easwaran2014-11-131-4/+11
| | | | | | | | | The segment alignment for PT_LOAD segments is set to page size by default, but if any of the sections require an alignment more than the page size, the segment alignment property is set to the maximum alignment of the sections that are part of the segment. llvm-svn: 221862
* [ELF] Remove is64bits() and isLittlEndian().Shankar Easwaran2014-11-071-1/+10
| | | | | | | | | | ELFLinkingContext had these two functions, which is really not needed since the Writer uses a llvm::object template composed of Endianness, Alignment, Is32bit/64bit. We could just use that and not duplicate functionality. No Change In Functionality. llvm-svn: 221523
* [ELF] Fix program headers.Shankar Easwaran2014-11-041-5/+3
| | | | | | | | | The ELF writer creates a invalid binary for few cases with large filesize and memory size for segments. This patch addresses the functionality and updates the test. This patch also cleans up parts of the ELF writer for future enhancements to support Linker scripts. llvm-svn: 221233
* [ELF] Add Readers for all the ELF subtargets.Shankar Easwaran2014-10-181-1/+0
| | | | | | | | | This would permit the ELF reader to check the architecture that is being selected by the linking process. This patch also sorts the include files according to LLVM conventions. llvm-svn: 220129
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-271-9/+13
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [lld][ELF] Support non alloc sections in the Writer.Shankar Easwaran2013-09-191-2/+5
| | | | | | | | | This also makes it support debugging executables built with lld. Initial patch done by Bigcheese. This is only a revised patch to have the functionality in the Writer. llvm-svn: 191032
* [lld][ELF] Cleanup ELF writing, No change in functionalityShankar Easwaran2013-08-261-20/+13
| | | | | | | | | | The cleanup includes :- * Rename ambiguous Header class to ELFHeader * Convert Chunk contentype and kind to be a enumerated class * Remove functions that are not being used, avoids future confusion llvm-svn: 189209
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-11/+12
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* [ELF] add NMAGIC/OMAGIC supportShankar Easwaran2013-06-161-2/+19
| | | | llvm-svn: 184055
* [lld] Do not create a temporary pair.Rui Ueyama2013-05-161-27/+21
| | | | llvm-svn: 182033
* This is my Driver refactoring patch. Nick Kledzik2013-04-041-3/+4
| | | | | | | | | | | | | | | | | | | | | | | The major changes are: 1) LinkerOptions has been merged into TargetInfo 2) LinkerInvocation has been merged into Driver 3) Drivers no longer convert arguments into an intermediate (core) argument list, but instead create a TargetInfo object and call setter methods on it. This is only how in-process linking would work. That is, you can programmatically set up a TargetInfo object which controls the linking. 4) Lots of tweaks to test suite to work with driver changes 5) Add the DarwinDriver 6) I heavily doxygen commented TargetInfo.h Things to do after this patch is committed: a) Consider renaming TargetInfo, given its new roll. b) Consider pulling the list of input files out of TargetInfo. This will enable in-process clients to create one TargetInfo the re-use it with different input file lists. c) Work out a way for Drivers to format the warnings and error done in core linking. llvm-svn: 178776
* [lld] remove trailing whitespaceShankar Easwaran2013-03-141-8/+8
| | | | llvm-svn: 177079
* [ELF] Set values for bss_start and end symbols properly, If there are two ↵Shankar Easwaran2013-03-111-2/+8
| | | | | | load segments with RW permissions, bss_start and end may get set inappropriate llvm-svn: 176795
* [Writer][ELF] Use correct data types for sizes. Fixes integer overflow bug.Michael J. Spencer2013-03-091-3/+3
| | | | | | This only happens when the section header count is > 1024. llvm-svn: 176747
* [ELF] Set header flags to 0 by defaultShankar Easwaran2013-02-281-1/+1
| | | | llvm-svn: 176279
* [lld][ELF] Order segmentsShankar Easwaran2013-02-271-40/+22
| | | | llvm-svn: 176207
* [ELF][Writer] Add a PHDR program table entry for dynamic files.Michael J. Spencer2013-02-231-0/+21
| | | | llvm-svn: 175951
* sort quickdata for the hexagon targetShankar Easwaran2013-02-221-11/+13
| | | | llvm-svn: 175904
* [ELF][Writer] Add .interp section.Michael J. Spencer2013-02-201-1/+2
| | | | llvm-svn: 175657
* [ELF][Writer] Add dynamic table.Michael J. Spencer2013-02-201-2/+3
| | | | llvm-svn: 175654
* [ELF][Writer] Refactor Section to not have atoms. Move atoms into AtomSection.Michael J. Spencer2013-02-141-5/+5
| | | | | | | | | The purpose of this change is to simplify creating non-atom sections. Previously _contentType, _sectionKind and _order were used for multiple purposes and collided in places. This moves all of the Atom specific logic down into AtomSection and makes Section just have raw Elf_Shdr flags. llvm-svn: 175207
* [ELF][x86-84] Add static TLS support.Michael J. Spencer2013-02-011-23/+44
| | | | llvm-svn: 174154
* [ELF] Chop the ELF prefix off of most things.Michael J. Spencer2013-01-291-0/+309
llvm-svn: 173838
OpenPOWER on IntegriCloud