summaryrefslogtreecommitdiffstats
path: root/lld
Commit message (Collapse)AuthorAgeFilesLines
* fix command line option to use -oNick Kledzik2013-04-041-1/+1
| | | | llvm-svn: 178777
* This is my Driver refactoring patch. Nick Kledzik2013-04-04165-1696/+3008
| | | | | | | | | | | | | | | | | | | | | | | 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
* Update for API change for handling mips64el.Rafael Espindola2013-04-032-8/+18
| | | | llvm-svn: 178695
* Update the lld testsuite for the llvm-readobj format change.Rafael Espindola2013-04-034-53/+208
| | | | llvm-svn: 178693
* [ELF][Hexagon] fix few relocations and add testShankar Easwaran2013-04-015-34/+57
| | | | llvm-svn: 178495
* [ELF][Hexagon] Create .got.plt entries with the appropriate alignmentShankar Easwaran2013-04-016-19/+27
| | | | llvm-svn: 178467
* [ELF] Set the symbol type for undefined atoms properlyShankar Easwaran2013-04-013-3/+6
| | | | llvm-svn: 178466
* [ELF] Add dynamic hash table and get simple dynamic libraries working with ↵Shankar Easwaran2013-03-299-52/+263
| | | | | | Hexagon llvm-svn: 178323
* [ELF] Cache contentType and permissions.Michael J. Spencer2013-03-282-18/+31
| | | | llvm-svn: 178269
* [Driver] Don't open files multiple times.Michael J. Spencer2013-03-281-2/+1
| | | | llvm-svn: 178268
* [ELF][Hexagon] remove duplicated codeShankar Easwaran2013-03-261-59/+27
| | | | llvm-svn: 178027
* [ELF][Hexagon] Fixing failing test on Bots, few symbol names are available ↵Shankar Easwaran2013-03-261-40/+3
| | | | | | only in debug builds, dont check the symbol names llvm-svn: 177991
* [ELF] no change in functionality, add functions to symbol table so that they ↵Shankar Easwaran2013-03-261-69/+112
| | | | | | can be overridden by derived classes llvm-svn: 177990
* [ELF][Hexagon] add GOTREL/GOT relocationsShankar Easwaran2013-03-265-4/+291
| | | | llvm-svn: 177970
* [ELF] order rela.dyn/rela.plt properlyShankar Easwaran2013-03-264-2/+41
| | | | llvm-svn: 177969
* [ELF] fix dynamic symbol table entries and update testsShankar Easwaran2013-03-253-12/+14
| | | | llvm-svn: 177875
* [ELF][Hexagon][test] check .got.plt orderShankar Easwaran2013-03-203-0/+12
| | | | llvm-svn: 177604
* [X86_64][test] check that interp section is not emitted when building ↵Shankar Easwaran2013-03-203-0/+6
| | | | | | dynamic libraries llvm-svn: 177603
* [SymbolTable][Perf] Use hash_combine instead of a custom hash, also use memcmp.Michael J. Spencer2013-03-201-14/+9
| | | | | | | | | | ArrayRef<uint8_t>::equals(); lowers to a byte compare loop :(. TODO: Figure out if we are getting hash collisions, or just have a lot of equal content. Also test if crypto hashing the content instead of full compare is better. llvm-svn: 177588
* [ELF][Reader] Add debug message to print all inputs the linker actually read.Michael J. Spencer2013-03-201-0/+1
| | | | llvm-svn: 177564
* [ELF][Reader][Perf] Only do loookup once.Michael J. Spencer2013-03-201-2/+3
| | | | llvm-svn: 177563
* [ELF][Reader] Refactor how relocations are read. Improves performance.Michael J. Spencer2013-03-201-20/+23
| | | | | | | | This changes from reading each relocation individually for each section to just storing the range of relocations. It also counts the relocations to preallocate the _references array. llvm-svn: 177562
* [ELF][Reader] Remove static ordinal.Michael J. Spencer2013-03-201-4/+1
| | | | llvm-svn: 177561
* memcpy instead of copy_n. Faster than copy_n on MSVC :(.Michael J. Spencer2013-03-201-1/+1
| | | | llvm-svn: 177557
* Devirtualize Reference::kind.Michael J. Spencer2013-03-205-40/+24
| | | | | | Improves performance. llvm-svn: 177556
* Devirtualize File::kind.Michael J. Spencer2013-03-208-31/+16
| | | | | | This is the standard way of implementing LLVM RTTI. llvm-svn: 177555
* Set ordinals correctly.Michael J. Spencer2013-03-204-8/+4
| | | | | | | This actually doesn't change behavior with the current LinkerInvocation, but it's needed when you make reading parallel. llvm-svn: 177554
* [ELF][Hexagon] Add Hexagon dynamic relocationsShankar Easwaran2013-03-203-8/+152
| | | | llvm-svn: 177484
* [ELF] Interp section is only needed in dynamic executablesShankar Easwaran2013-03-202-9/+14
| | | | llvm-svn: 177483
* [ELF] Order .got.plt properlyShankar Easwaran2013-03-201-1/+4
| | | | llvm-svn: 177482
* Fix "control reaches end of non-void function" compiling lld on gcc.Andy Gibbs2013-03-191-1/+2
| | | | llvm-svn: 177424
* Add virtual destructors to fix -Wnon-virtual-dtor warningsAlexey Samsonov2013-03-192-0/+6
| | | | llvm-svn: 177392
* [lld] remove trailing whitespaceShankar Easwaran2013-03-1451-468/+468
| | | | llvm-svn: 177079
* [ELF][X86_64][Hexagon] order plt/got entries properly and fix testShankar Easwaran2013-03-133-23/+45
| | | | llvm-svn: 176970
* [Pass][Layout] Add extra debugging informationShankar Easwaran2013-03-131-10/+22
| | | | llvm-svn: 176925
* [ELF][Writer] Let std::vector handle allocating space instead of reserving ↵Michael J. Spencer2013-03-131-6/+0
| | | | | | tiny portions. llvm-svn: 176916
* [Pass][Layout] Make algorithm not n^2.Michael J. Spencer2013-03-121-0/+2
| | | | | | | This reduces the time spent in this function while linking ASTMatchersTests from %43 to %2.4 of total link time. llvm-svn: 176842
* [ELF] Set values for bss_start and end symbols properly, If there are two ↵Shankar Easwaran2013-03-112-5/+11
| | | | | | load segments with RW permissions, bss_start and end may get set inappropriate llvm-svn: 176795
* [Driver][GNU] Accept and ignore more options.Michael J. Spencer2013-03-091-0/+4
| | | | llvm-svn: 176749
* Fix (possible) MSVC miscompile in debug mode.Michael J. Spencer2013-03-091-1/+2
| | | | llvm-svn: 176748
* [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] Create baseclass for all ELF writersShankar Easwaran2013-03-083-587/+389
| | | | llvm-svn: 176724
* [ELF] Order weak symbols properlyShankar Easwaran2013-03-0615-34/+268
| | | | llvm-svn: 176583
* [ELF][Hexagon] fixing dynlib testShankar Easwaran2013-03-051-4/+5
| | | | llvm-svn: 176503
* [ELF][Hexagon] fixing test failureShankar Easwaran2013-03-051-6/+5
| | | | llvm-svn: 176497
* Fix -Wdocumentation warning: use a correct Doxygen comment markerDmitri Gribenko2013-03-051-6/+6
| | | | llvm-svn: 176494
* [ELF] Set symbol type to STT_SECTION, so that objdump.bfd doesnot get ↵Shankar Easwaran2013-03-051-1/+7
| | | | | | confused when disassembling output llvm-svn: 176489
* [ELF] add dynamic library supportShankar Easwaran2013-03-052-7/+40
| | | | llvm-svn: 176483
* [ELF] Remove commentShankar Easwaran2013-03-054-17/+395
| | | | llvm-svn: 176482
* [ELF] no functionality change, update dynamicTable functionalityShankar Easwaran2013-03-042-71/+82
| | | | llvm-svn: 176430
OpenPOWER on IntegriCloud