summaryrefslogtreecommitdiffstats
path: root/lld/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify. NFC.Rafael Espindola2015-10-021-2/+2
| | | | llvm-svn: 249128
* Use ld.lld2 as a argv[0] alias.Rafael Espindola2015-10-021-1/+4
| | | | | | | | The reason for the name is so that we can run ./build/bin/clang -fuse-ld=lld2 test.o -o t llvm-svn: 249122
* [LLD] Fix Clang-tidy modernize-use-nullptr warnings; other minor cleanups.Rui Ueyama2015-10-024-20/+5
| | | | | | Patch from Eugene Zelenko! llvm-svn: 249111
* [lld][MachO] Fix a think-o to get the twolevel/dynamic_lookup test passing.Lang Hames2015-09-282-7/+5
| | | | llvm-svn: 248736
* [lld][MachO] Initial implementation of -flat_namespace and -undefined.Lang Hames2015-09-286-12/+167
| | | | | | | | | This is a basic initial implementation of the -flat_namespace and -undefined options for LLD-darwin. It ignores several subtlties, but the result is close enough that we can now link LLVM (but not clang) on Darwin and pass all regression tests. llvm-svn: 248732
* ELF/AMDGPU: Text section should be called .hsatextTom Stellard2015-09-252-3/+3
| | | | | | | | | | Reviewers: atanasyan, ruiu Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12447 llvm-svn: 248621
* Fix memory leak in FileArchive::find().Rui Ueyama2015-09-242-4/+17
| | | | | | Patch from George Rimar! llvm-svn: 248525
* [LLD][MachO] Fix a FIXME: Subtract base address from atom address when buildingLang Hames2015-09-212-1/+4
| | | | | | export trie. llvm-svn: 248217
* [Mips] Rejects all --hash-style arguments except 'sysv' in case of MIPS targetSimon Atanasyan2015-09-161-1/+7
| | | | | | MIPS ABI supports only --hash-style=sysv variant. llvm-svn: 247796
* [Mips] Do not show an error if R_MIPS_GPREL32 relocation has a non-local targetSimon Atanasyan2015-09-161-13/+0
| | | | | | This matches GNU linker behaviour. llvm-svn: 247795
* Fix Clang-tidy misc-use-override warnings, other minor fixes.Rui Ueyama2015-09-1012-66/+42
| | | | | | Patch from Eugene Zelenko! llvm-svn: 247323
* Fix -Wcovered-switch-default warnings.Rui Ueyama2015-08-311-4/+2
| | | | llvm-svn: 246419
* ELF: Fix "not all control paths return a value" warning.Rui Ueyama2015-08-311-12/+16
| | | | llvm-svn: 246417
* [Mips] Support grouping of multiple consecutive relocations in case of N32 ↵Simon Atanasyan2015-08-281-1/+15
| | | | | | and 64-bit MIPS ABIs llvm-svn: 246337
* [Mips] Support two more MIPS linking emulation options ↵Simon Atanasyan2015-08-281-2/+2
| | | | | | elf32btsmipn32/elf32ltsmipn32 llvm-svn: 246336
* [Mips] Make "emulation" option less dependent on the "-target" option.Simon Atanasyan2015-08-281-11/+7
| | | | | | | Now it is possible to have mips-linux-gnu-ld executable and link MIPS 64-bit little-endian binaries providing -melf64ltsmip command line argument. llvm-svn: 246335
* [Mips] Initial support of the MIPS N32 ABISimon Atanasyan2015-08-287-10/+117
| | | | llvm-svn: 246334
* ELF/AMDGPU: Add more misssing: using namespace lld;Tom Stellard2015-08-272-0/+2
| | | | | | Hopefully, this will resolve the remaining windows bot errors. llvm-svn: 246181
* ELF/AMDGPU: Add missing: using namespace lld; to try to fix windows botTom Stellard2015-08-271-0/+1
| | | | llvm-svn: 246179
* ELF/AMDGPU: Remove another unused private member variableTom Stellard2015-08-271-4/+1
| | | | llvm-svn: 246164
* ELF/AMDGPU: Remove unused private member variableTom Stellard2015-08-272-2/+1
| | | | | | This should fix the one of the failing bots. llvm-svn: 246160
* ELF/AMDGPU: Attempt to fix windows botsTom Stellard2015-08-271-0/+1
| | | | | | Broken by r246155. llvm-svn: 246159
* ELF: Add AMDGPU ReaderWriterTom Stellard2015-08-2716-3/+434
| | | | | | | | | This is a basic implementation that allows lld to emit binaries consumable by the HSA runtime. Differential Revision: http://reviews.llvm.org/D11267 llvm-svn: 246155
* [LinkerScript] Fix a crash when matching wildcards.Davide Italiano2015-08-221-2/+5
| | | | | | Submitted by: zan jyu via llvm-dev llvm-svn: 245792
* [Mips] Use 'or' for move instead of [d]addu in PLT entriesSimon Atanasyan2015-08-191-2/+2
| | | | | | | | Patch by Simon Dardis. Differential Revision: http://reviews.llvm.org/D12103 llvm-svn: 245491
* Update for llvm api change.Rafael Espindola2015-08-131-1/+1
| | | | llvm-svn: 244856
* Update for llvm api change.Rafael Espindola2015-08-132-9/+11
| | | | llvm-svn: 244849
* Wdeprecated: Remove unnecessary user-defined dtor that was getting in the ↵David Blaikie2015-08-121-1/+0
| | | | | | way of the default ops (copy construction, assignment, etc) llvm-svn: 244836
* [ELF] Remove TargetLayout::getCustomSegments methodsDenis Protivensky2015-08-122-23/+1
| | | | llvm-svn: 244747
* [LinkerScript] Process program header in PHDRS commandDenis Protivensky2015-08-125-60/+135
| | | | | | | | | | Add PT_PHDR segment depending on its availability in linker script's PHDRS command, fallback if no linker script is given. Handle FILEHDR, PHDRS and FLAGS attributes of program header. Differential Revision: http://reviews.llvm.org/D11589 llvm-svn: 244743
* Update for llvm api change.Rafael Espindola2015-08-102-3/+14
| | | | llvm-svn: 244511
* Don't depend on getDotSymtabSec. It is going away.Rafael Espindola2015-08-102-11/+15
| | | | llvm-svn: 244451
* COFF: Remove lld-link2 alias.Rui Ueyama2015-08-071-2/+0
| | | | llvm-svn: 244358
* Avoid using getDotDynSymSec in lld. It is going away.Rafael Espindola2015-08-071-2/+8
| | | | llvm-svn: 244350
* Use already available symbol tables. NFC.Rafael Espindola2015-08-072-2/+3
| | | | llvm-svn: 244336
* ELF: Correctly identify SHT_NOTE sections with !SHF_ALLOC as type*NoteTom Stellard2015-08-071-1/+6
| | | | | | | | Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11266 llvm-svn: 244317
* COFF: Remove the old COFF linker and make link an alias to link2.Rui Ueyama2015-08-0627-7253/+2
| | | | | | It's time to remove old COFF linker because the new one is now complete. llvm-svn: 244226
* Port the error functions from ELF to COFF.Rafael Espindola2015-08-061-1/+2
| | | | | | | | | | | | | | | This has a few advantages * Less C++ code (about 300 lines less). * Less machine code (about 14 KB of text on a linux x86_64 build). * It is more debugger friendly. Just set a breakpoint on the exit function and you get the complete lld stack trace of when the error was found. * It is a more robust API. The errors are handled early and we don't get a std::error_code hot potato being passed around. * In most cases the error function in a better position to print diagnostics (it has more context). llvm-svn: 244215
* [Mips] Implement definition of the DT_MIPS_RLD_MAP_REL dynamic tagSimon Atanasyan2015-08-011-2/+10
| | | | llvm-svn: 243835
* [Mips] Implement definition of DT_MIPS_RLD_MAP dynamic tag, .rld_map ↵Simon Atanasyan2015-07-302-0/+32
| | | | | | section, and __RLD_MAP symbol llvm-svn: 243626
* [Mips] Define _DYNAMIC_LINKING symbol if output is a is dynamically linked ↵Simon Atanasyan2015-07-251-1/+7
| | | | | | executable file llvm-svn: 243211
* [Mips] Remove redundant separate functions to calculate relocations. DoSimon Atanasyan2015-07-251-52/+23
| | | | | | | | that inline. No functional changes. llvm-svn: 243210
* [Mips] Remove duplicated code by joining the same functionsSimon Atanasyan2015-07-251-21/+4
| | | | llvm-svn: 243209
* [Mips] Do not sign-extend addends read from RELA relocation recordsSimon Atanasyan2015-07-251-18/+21
| | | | llvm-svn: 243208
* [ELF2] Add a new ELF linker based on the new PE/COFF linker.Michael J. Spencer2015-07-242-0/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D11188 llvm-svn: 243161
* Fix -Wextra-semi.Rui Ueyama2015-07-232-4/+4
| | | | | | Patch from Eugene.Zelenko! llvm-svn: 243060
* Use the getSymbol with an explicit symbol table. NFC.Rafael Espindola2015-07-234-19/+26
| | | | llvm-svn: 243014
* [LinkerScript] Fix case when setting custom NONE segmentDenis Protivensky2015-07-231-1/+1
| | | | llvm-svn: 243006
* [ELF] Apply segments from linker scriptsDenis Protivensky2015-07-2310-105/+171
| | | | | | | | | | | | | | Put sections to segments according to linker scripts if available. Rework the code of TargetLayout::assignSectionsToSegments so it operates on the given list of segments, which can be either read from linker scripts or constructed as before. Handle NONE segments defined in linker scripts by putting corresponding sections to PT_NULL segment. Consider flags set for segments through linker scripts. Differential Revision: http://reviews.llvm.org/D10918 llvm-svn: 243002
* [ELF] Protect write access to the ELFLinkingContext::_cidentSections by a mutexSimon Atanasyan2015-07-221-1/+3
| | | | | | | The _cidentSections container is filled during files parsing so we need to serialize a concurrent access to it. llvm-svn: 242885
OpenPOWER on IntegriCloud