Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Simplify. NFC. | Rafael Espindola | 2015-10-02 | 1 | -2/+2 | |
| | | | | llvm-svn: 249128 | |||||
* | Use ld.lld2 as a argv[0] alias. | Rafael Espindola | 2015-10-02 | 1 | -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 Ueyama | 2015-10-02 | 4 | -20/+5 | |
| | | | | | | Patch from Eugene Zelenko! llvm-svn: 249111 | |||||
* | [lld][MachO] Fix a think-o to get the twolevel/dynamic_lookup test passing. | Lang Hames | 2015-09-28 | 2 | -7/+5 | |
| | | | | llvm-svn: 248736 | |||||
* | [lld][MachO] Initial implementation of -flat_namespace and -undefined. | Lang Hames | 2015-09-28 | 6 | -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 .hsatext | Tom Stellard | 2015-09-25 | 2 | -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 Ueyama | 2015-09-24 | 2 | -4/+17 | |
| | | | | | | Patch from George Rimar! llvm-svn: 248525 | |||||
* | [LLD][MachO] Fix a FIXME: Subtract base address from atom address when building | Lang Hames | 2015-09-21 | 2 | -1/+4 | |
| | | | | | | export trie. llvm-svn: 248217 | |||||
* | [Mips] Rejects all --hash-style arguments except 'sysv' in case of MIPS target | Simon Atanasyan | 2015-09-16 | 1 | -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 target | Simon Atanasyan | 2015-09-16 | 1 | -13/+0 | |
| | | | | | | This matches GNU linker behaviour. llvm-svn: 247795 | |||||
* | Fix Clang-tidy misc-use-override warnings, other minor fixes. | Rui Ueyama | 2015-09-10 | 12 | -66/+42 | |
| | | | | | | Patch from Eugene Zelenko! llvm-svn: 247323 | |||||
* | Fix -Wcovered-switch-default warnings. | Rui Ueyama | 2015-08-31 | 1 | -4/+2 | |
| | | | | llvm-svn: 246419 | |||||
* | ELF: Fix "not all control paths return a value" warning. | Rui Ueyama | 2015-08-31 | 1 | -12/+16 | |
| | | | | llvm-svn: 246417 | |||||
* | [Mips] Support grouping of multiple consecutive relocations in case of N32 ↵ | Simon Atanasyan | 2015-08-28 | 1 | -1/+15 | |
| | | | | | | and 64-bit MIPS ABIs llvm-svn: 246337 | |||||
* | [Mips] Support two more MIPS linking emulation options ↵ | Simon Atanasyan | 2015-08-28 | 1 | -2/+2 | |
| | | | | | | elf32btsmipn32/elf32ltsmipn32 llvm-svn: 246336 | |||||
* | [Mips] Make "emulation" option less dependent on the "-target" option. | Simon Atanasyan | 2015-08-28 | 1 | -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 ABI | Simon Atanasyan | 2015-08-28 | 7 | -10/+117 | |
| | | | | llvm-svn: 246334 | |||||
* | ELF/AMDGPU: Add more misssing: using namespace lld; | Tom Stellard | 2015-08-27 | 2 | -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 bot | Tom Stellard | 2015-08-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 246179 | |||||
* | ELF/AMDGPU: Remove another unused private member variable | Tom Stellard | 2015-08-27 | 1 | -4/+1 | |
| | | | | llvm-svn: 246164 | |||||
* | ELF/AMDGPU: Remove unused private member variable | Tom Stellard | 2015-08-27 | 2 | -2/+1 | |
| | | | | | | This should fix the one of the failing bots. llvm-svn: 246160 | |||||
* | ELF/AMDGPU: Attempt to fix windows bots | Tom Stellard | 2015-08-27 | 1 | -0/+1 | |
| | | | | | | Broken by r246155. llvm-svn: 246159 | |||||
* | ELF: Add AMDGPU ReaderWriter | Tom Stellard | 2015-08-27 | 16 | -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 Italiano | 2015-08-22 | 1 | -2/+5 | |
| | | | | | | Submitted by: zan jyu via llvm-dev llvm-svn: 245792 | |||||
* | [Mips] Use 'or' for move instead of [d]addu in PLT entries | Simon Atanasyan | 2015-08-19 | 1 | -2/+2 | |
| | | | | | | | | Patch by Simon Dardis. Differential Revision: http://reviews.llvm.org/D12103 llvm-svn: 245491 | |||||
* | Update for llvm api change. | Rafael Espindola | 2015-08-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 244856 | |||||
* | Update for llvm api change. | Rafael Espindola | 2015-08-13 | 2 | -9/+11 | |
| | | | | llvm-svn: 244849 | |||||
* | Wdeprecated: Remove unnecessary user-defined dtor that was getting in the ↵ | David Blaikie | 2015-08-12 | 1 | -1/+0 | |
| | | | | | | way of the default ops (copy construction, assignment, etc) llvm-svn: 244836 | |||||
* | [ELF] Remove TargetLayout::getCustomSegments methods | Denis Protivensky | 2015-08-12 | 2 | -23/+1 | |
| | | | | llvm-svn: 244747 | |||||
* | [LinkerScript] Process program header in PHDRS command | Denis Protivensky | 2015-08-12 | 5 | -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 Espindola | 2015-08-10 | 2 | -3/+14 | |
| | | | | llvm-svn: 244511 | |||||
* | Don't depend on getDotSymtabSec. It is going away. | Rafael Espindola | 2015-08-10 | 2 | -11/+15 | |
| | | | | llvm-svn: 244451 | |||||
* | COFF: Remove lld-link2 alias. | Rui Ueyama | 2015-08-07 | 1 | -2/+0 | |
| | | | | llvm-svn: 244358 | |||||
* | Avoid using getDotDynSymSec in lld. It is going away. | Rafael Espindola | 2015-08-07 | 1 | -2/+8 | |
| | | | | llvm-svn: 244350 | |||||
* | Use already available symbol tables. NFC. | Rafael Espindola | 2015-08-07 | 2 | -2/+3 | |
| | | | | llvm-svn: 244336 | |||||
* | ELF: Correctly identify SHT_NOTE sections with !SHF_ALLOC as type*Note | Tom Stellard | 2015-08-07 | 1 | -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 Ueyama | 2015-08-06 | 27 | -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 Espindola | 2015-08-06 | 1 | -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 tag | Simon Atanasyan | 2015-08-01 | 1 | -2/+10 | |
| | | | | llvm-svn: 243835 | |||||
* | [Mips] Implement definition of DT_MIPS_RLD_MAP dynamic tag, .rld_map ↵ | Simon Atanasyan | 2015-07-30 | 2 | -0/+32 | |
| | | | | | | section, and __RLD_MAP symbol llvm-svn: 243626 | |||||
* | [Mips] Define _DYNAMIC_LINKING symbol if output is a is dynamically linked ↵ | Simon Atanasyan | 2015-07-25 | 1 | -1/+7 | |
| | | | | | | executable file llvm-svn: 243211 | |||||
* | [Mips] Remove redundant separate functions to calculate relocations. Do | Simon Atanasyan | 2015-07-25 | 1 | -52/+23 | |
| | | | | | | | | that inline. No functional changes. llvm-svn: 243210 | |||||
* | [Mips] Remove duplicated code by joining the same functions | Simon Atanasyan | 2015-07-25 | 1 | -21/+4 | |
| | | | | llvm-svn: 243209 | |||||
* | [Mips] Do not sign-extend addends read from RELA relocation records | Simon Atanasyan | 2015-07-25 | 1 | -18/+21 | |
| | | | | llvm-svn: 243208 | |||||
* | [ELF2] Add a new ELF linker based on the new PE/COFF linker. | Michael J. Spencer | 2015-07-24 | 2 | -0/+6 | |
| | | | | | | Differential Revision: http://reviews.llvm.org/D11188 llvm-svn: 243161 | |||||
* | Fix -Wextra-semi. | Rui Ueyama | 2015-07-23 | 2 | -4/+4 | |
| | | | | | | Patch from Eugene.Zelenko! llvm-svn: 243060 | |||||
* | Use the getSymbol with an explicit symbol table. NFC. | Rafael Espindola | 2015-07-23 | 4 | -19/+26 | |
| | | | | llvm-svn: 243014 | |||||
* | [LinkerScript] Fix case when setting custom NONE segment | Denis Protivensky | 2015-07-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 243006 | |||||
* | [ELF] Apply segments from linker scripts | Denis Protivensky | 2015-07-23 | 10 | -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 mutex | Simon Atanasyan | 2015-07-22 | 1 | -1/+3 | |
| | | | | | | | The _cidentSections container is filled during files parsing so we need to serialize a concurrent access to it. llvm-svn: 242885 |