summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF
Commit message (Collapse)AuthorAgeFilesLines
...
* [lld] Include reference kind in cycle detector debug outputNico Rieck2014-02-241-1/+1
| | | | | | | | This restores the debug output to how it was before r197727 broke it. This went undetected because the corresponding test was never run due to broken feature detection. llvm-svn: 202079
* [ELF] Dont generate PHDR when creating dynamic libraries.Shankar Easwaran2014-02-191-1/+1
| | | | llvm-svn: 201741
* [ELF] Fix alignment for dynamic relocation sections.Shankar Easwaran2014-02-191-2/+5
| | | | | | | | The sections .rela/.rel.(*) have a alignment of 2 in the final image created by the linker. This needs to be properly set to the right alignment depending on the architecture(32/64bits). llvm-svn: 201740
* [Mips] Simplify the code. Replace redundant 'switch' operator by the single ↵Simon Atanasyan2014-02-111-7/+1
| | | | | | 'if' one. llvm-svn: 201131
* [Mips] Handle R_MIPS_COPY relocation.Simon Atanasyan2014-02-114-0/+57
| | | | llvm-svn: 201129
* [Mips] In case of executable file linking MIPS ABI requires to add evenSimon Atanasyan2014-02-033-0/+23
| | | | | | | undefined symbols to '.dynsym' if these symbols have corresponding entries in a global part of GOT. llvm-svn: 200716
* [Mips] Unify #include guard names.Simon Atanasyan2014-02-039-22/+23
| | | | llvm-svn: 200715
* [ELF] change LayoutBefore Reference to InGroup ReferenceShankar Easwaran2014-02-031-3/+5
| | | | | | This makes it a lot easier for Section Group design. llvm-svn: 200675
* [ELF] Customize dynamic table tag used for .got.plt section referencing.Simon Atanasyan2014-02-022-1/+7
| | | | | | The patch reviewed by Shankar Easwaran and Rui Ueyama. llvm-svn: 200630
* [ELF] Make private all DynamicTable class fields which are not used inSimon Atanasyan2014-01-301-0/+2
| | | | | | the descendant classes. llvm-svn: 200467
* [ELF][Hexagon] typeZeroFillQuick is not associated with bss section.Shankar Easwaran2014-01-291-1/+1
| | | | | | | We need to increase the memory and the filesize when we add a typeZeroFillQuick atom. llvm-svn: 200369
* [Mips] Declare MipsDynamicTable class in a separate header file.Simon Atanasyan2014-01-284-81/+107
| | | | llvm-svn: 200328
* Fix trailing whitespace.Shankar Easwaran2014-01-271-1/+1
| | | | llvm-svn: 200182
* [ELF] Fix comments.Shankar Easwaran2014-01-276-12/+6
| | | | | | | | | The comments in the files that described the file name as part of each file header ran over 80 columns, which clang-format split over multiple lines. This commit fixes to make them appear properly. llvm-svn: 200181
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-2738-673/+1359
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [ELF] Create Target specific Writers.Shankar Easwaran2014-01-275-75/+110
| | | | llvm-svn: 200176
* [ELF] Add Target specific Readers.Shankar Easwaran2014-01-2714-316/+513
| | | | | | No change in functionality. llvm-svn: 200175
* [ELF] Separate ELFReader classes for subclassingShankar Easwaran2014-01-273-28/+107
| | | | llvm-svn: 200173
* [ELF] Unify interfaces between DynamicFile/ELFFile.Shankar Easwaran2014-01-272-44/+44
| | | | llvm-svn: 200172
* [ELF] Separate implementation from the class declaration.Shankar Easwaran2014-01-262-588/+611
| | | | | | | | ELFFile would be a class that rest of the targets would derive from. To keep the implementation clean, separate the implementation from rest of the Header file. llvm-svn: 200168
* [ELF] Rename File.h to ELFFile.h to avoid confusion.Shankar Easwaran2014-01-267-8/+8
| | | | | | No change in functionality. llvm-svn: 200166
* [ELF] Dont include all targetsShankar Easwaran2014-01-261-3/+0
| | | | llvm-svn: 200165
* [ELF] Customize a relocation table output format (rel / rela).Simon Atanasyan2014-01-244-34/+72
| | | | | | | | | | Add new virtual virtual function `isRelaOutputFormat` to the `ELFLinkingContext` class. Call this function everywhere we need to select a relocation table format. Patch reviewed by Shankar Easwaran and Rui Ueyama. llvm-svn: 199973
* [Mips] Emit ELF header for MIPS target. ELF flags set is mostly hardcoded.Simon Atanasyan2014-01-182-0/+23
| | | | | | | Later we need to improve that solution and build a correct set of flags by merging ELF flags from all input objects. llvm-svn: 199555
* [Mips] Simplify calculations of relocations - replace scatterBits callsSimon Atanasyan2014-01-181-14/+7
| | | | | | by bitwise AND operator and remove redundant local variables. llvm-svn: 199554
* [Mips] Allocate local GOT entry for a global symbol defined in anSimon Atanasyan2014-01-171-1/+9
| | | | | | executable file. llvm-svn: 199517
* [Mips] Implement .plt and .got.plt section creation.Simon Atanasyan2014-01-176-3/+182
| | | | llvm-svn: 199516
* [Mips] Handle R_MIPS_26 relocation. Maintaining of .plt and .got.pltSimon Atanasyan2014-01-174-1/+37
| | | | | | sections will be implemented later. llvm-svn: 199515
* [Mips] Provide default name of MIPS-specific interpreter.Simon Atanasyan2014-01-172-0/+5
| | | | llvm-svn: 199514
* [Mips] Do not forget to initialize a class field.Simon Atanasyan2014-01-141-1/+1
| | | | llvm-svn: 199241
* [Mips] Calculate gp value only once.Simon Atanasyan2014-01-141-7/+5
| | | | llvm-svn: 199240
* [Mips] Create and initialize _gp symbol.Simon Atanasyan2014-01-141-0/+7
| | | | llvm-svn: 199239
* [Mips] Do not store a pointer to the AtomLayout related to theSimon Atanasyan2014-01-142-3/+1
| | | | | | | _GLOBAL_OFFSET_TABLE_ symbol. We do not use this ponter anywhere after assigning of virtual address. llvm-svn: 199237
* [Mips] Factor out constant represents gp value offset to theSimon Atanasyan2014-01-142-1/+5
| | | | | | MipsTargetLayout class method. llvm-svn: 199236
* [Mips] Set default base address for MIPS executables to 0x400000. AssignSimon Atanasyan2014-01-143-1/+23
| | | | | | the lowest segment address to the MIPS_BASE_ADDRESS dynamic tag. llvm-svn: 199234
* [ELF] Fix type of the DefaultLayout::segments() return value. ThisSimon Atanasyan2014-01-141-1/+3
| | | | | | | | method returns the DefaultLayout::_segments field. The type of this field is a vector of Segment<ELFT>* pointers. This type cannot be implicitly casted to the range<ChunkIter>. llvm-svn: 199233
* [Mips] Reduce the number of type-casting calls.Simon Atanasyan2014-01-091-6/+7
| | | | llvm-svn: 198855
* [Mips] Remove unnecessary #include pragma.Simon Atanasyan2014-01-081-2/+0
| | | | llvm-svn: 198798
* Use getError instead of the error_code operator.Rafael Espindola2014-01-083-20/+20
| | | | llvm-svn: 198797
* [Mips] GOT16 relocation against non-local symbol does not require aSimon Atanasyan2014-01-084-1/+16
| | | | | | paired LO16 relocation. llvm-svn: 198790
* [Mips] Add assert to check that we handle all paired relocations.Simon Atanasyan2014-01-082-0/+6
| | | | llvm-svn: 198789
* [Mips] Factor out the code determines type of GOT entry (local/global)Simon Atanasyan2014-01-082-11/+27
| | | | | | into the separate function. llvm-svn: 198788
* [Mips] Do not use standard relocation identifier R_MIPS_NONE forSimon Atanasyan2014-01-085-6/+20
| | | | | | internal purpose. Use special LLD_R_MIPS_GLOBAL_GOT constant for that. llvm-svn: 198787
* [Mips] Rename function to better reflect its purpose.Simon Atanasyan2014-01-081-2/+2
| | | | llvm-svn: 198786
* [Mips] Do not save GOT headers atoms into the RelocationPass classSimon Atanasyan2014-01-081-9/+3
| | | | | | fields. llvm-svn: 198785
* [Mips] Rename some classes to skip redundant mentioning of 'mips'.Simon Atanasyan2014-01-081-14/+14
| | | | llvm-svn: 198784
* [Mips] Move MipsGOTPass implementation to the separate file.Simon Atanasyan2014-01-084-153/+205
| | | | llvm-svn: 198783
* No else after return.Joerg Sonnenberger2014-01-021-3/+3
| | | | llvm-svn: 198339
* The return value of createInternalFiles is unused, so remove it.Joey Gouly2013-12-314-6/+4
| | | | llvm-svn: 198266
* Run clang-format on r197727.Rui Ueyama2013-12-2018-203/+148
| | | | llvm-svn: 197788
OpenPOWER on IntegriCloud