summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/OutputELFWriter.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Use error_code() instead of error_code::succes()Rafael Espindola2014-05-311-2/+2
| | | | | | | There is no std::error_code::success, so this removes much of the noise in transitioning to std::error_code. llvm-svn: 209948
* [ELF] Add "override" and remove "virtual".Rui Ueyama2014-03-281-4/+4
| | | | llvm-svn: 205056
* Revert "[ELF] Order DT_NEEDED entries by command line order."Rui Ueyama2014-03-201-22/+5
| | | | | | This reverts commit r204291 because it broke buildbots. llvm-svn: 204317
* [ELF] Order DT_NEEDED entries by command line order.Michael J. Spencer2014-03-201-5/+22
| | | | | | With this all test-suite tests pass with lld on x86-64 Linux. llvm-svn: 204291
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-131-1/+1
| | | | | | | | This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld. llvm-svn: 203809
* [Cleanup] Sort includes.Ahmed Charles2014-03-121-4/+4
| | | | llvm-svn: 203666
* [ELF] Make changes to all the targets supported currentlyShankar Easwaran2014-01-271-53/+76
| | | | | | | | X86_64,X86,PPC,Hexagon,Mips No change in functionality. llvm-svn: 200177
* [ELF] Create Target specific Writers.Shankar Easwaran2014-01-271-27/+48
| | | | llvm-svn: 200176
* [ELF] Rename File.h to ELFFile.h to avoid confusion.Shankar Easwaran2014-01-261-1/+1
| | | | | | No change in functionality. llvm-svn: 200166
* Linking of shared libraries for MIPS little-endian 32-bit target.Simon Atanasyan2013-12-151-4/+2
| | | | | | | | | | | | | | | | | | | | | The following are the most significant peculiarities of MIPS target: - MIPS ABI requires some special tags in the dynamic table. - GOT consists of two parts local and global. The local part contains entries refer locally visible symbols. The global part contains entries refer global symbols. - Entries in the .dynsym section which have corresponded entries in the GOT should be: * Emitted at the end of .dynsym section * Sorted accordingly to theirs GOT counterparts - There are "paired" relocations. One or more R_MIPS_HI16 and R_MIPS_GOT16 relocations should be followed by R_MIPS_LO16 relocation. To calculate result of R_MIPS_HI16 and R_MIPS_GOT16 relocations we need to combine addends from these relocations and paired R_MIPS_LO16 relocation. The patch reviewed by Michael Spencer, Shankar Easwaran, Rui Ueyama. http://llvm-reviews.chandlerc.com/D2156 llvm-svn: 197342
* Fix "don't" typos missed in previous commitAlp Toker2013-12-011-1/+1
| | | | llvm-svn: 196054
* Fix include guards.Rui Ueyama2013-11-151-3/+3
| | | | llvm-svn: 194776
* Add explictly exported atoms and export R_*_COPY'ed atoms.Michael J. Spencer2013-11-081-0/+8
| | | | llvm-svn: 194278
* [ELF] Implement minimal support for .eh_frame_hdr.Michael J. Spencer2013-10-301-0/+10
| | | | llvm-svn: 193662
* [lld][InputGraph] Change the Resolver to use inputGraphShankar Easwaran2013-10-071-3/+5
| | | | | | | | | | | | Changes :- a) Functionality in InputGraph to insert Input elements at any position b) Functionality in the Resolver to use nextFile c) Move the functionality of assigning file ordinals to InputGraph d) Changes all inputs to MemoryBuffers e) Remove LinkerInput, InputFiles, ReaderArchive llvm-svn: 192081
* [lld][LinkingContext][ELF] Allow different output file types.Shankar Easwaran2013-09-231-2/+2
| | | | | | | | | | This adds an option --output-filetype that can be set to either YAML/Native(case insensitive). The linker would create the outputs associated with the type specified by the user. Changes all the tests to use the new option. llvm-svn: 191183
* Output soname.Joerg Sonnenberger2013-09-141-0/+7
| | | | llvm-svn: 190758
* Finish -rpath implementation to actually create the DT_RPATH entries.Joerg Sonnenberger2013-09-031-0/+9
| | | | llvm-svn: 189847
* [lld][LinkingContext] Atoms created from command line options should be ↵Shankar Easwaran2013-08-311-21/+3
| | | | | | | | | | | | available in YAML This adds an API to the LinkingContext for flavors to add Internal files containing atoms that need to appear in the YAML output as well, when -emit-yaml switch is used. Flavors can add more internal files for other options that are needed. llvm-svn: 189718
* [lld][ELF] Cleanup ELF writing, No change in functionalityShankar Easwaran2013-08-261-28/+29
| | | | | | | | | | 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-30/+29
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* [lld] rename member variable name.Shankar Easwaran2013-06-241-1/+1
| | | | | | | | | | This renames variable name to reflect initial undefined symbols that are defined by the linker -u option. This doesnot change any functionality in lld, and updates code to reflect Nick's comment. llvm-svn: 184682
* [ELF] add -u/--undefined option, to define undefined symbolsShankar Easwaran2013-06-191-4/+26
| | | | llvm-svn: 184266
* Parallel write.Michael J. Spencer2013-05-281-3/+3
| | | | llvm-svn: 182795
* [ELF] Make addressOfAtom thread safe.Michael J. Spencer2013-05-281-1/+2
| | | | | | The expression _atomToAddressMap[atom] may modify _atomToAddressMap. llvm-svn: 182793
* Instrument things.Michael J. Spencer2013-05-281-5/+18
| | | | llvm-svn: 182789
* [lld][ELF] (no testable functionality change) resize the number of entries ↵Shankar Easwaran2013-04-291-4/+15
| | | | | | in the string table for static linking llvm-svn: 180691
* This is my Driver refactoring patch. Nick Kledzik2013-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* [ELF] Add dynamic hash table and get simple dynamic libraries working with ↵Shankar Easwaran2013-03-291-4/+18
| | | | | | Hexagon llvm-svn: 178323
* [ELF] fix dynamic symbol table entries and update testsShankar Easwaran2013-03-251-6/+8
| | | | llvm-svn: 177875
* [ELF] Interp section is only needed in dynamic executablesShankar Easwaran2013-03-201-5/+0
| | | | llvm-svn: 177483
* [lld] remove trailing whitespaceShankar Easwaran2013-03-141-5/+5
| | | | llvm-svn: 177079
* [ELF] Create baseclass for all ELF writersShankar Easwaran2013-03-081-0/+354
llvm-svn: 176724
OpenPOWER on IntegriCloud