Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove the old ELF linker. | Rafael Espindola | 2016-02-28 | 22 | -5082/+0 |
| | | | | | | I think it is clear by now that the new linker is viable. llvm-svn: 262158 | ||||
* | Add File::kind's for all subclasses of File. | Pete Cooper | 2016-01-14 | 1 | -1/+1 |
| | | | | | | | | | | | | This is to enable isa<> support for any files which need it. It will be used in an upcoming patch to differentiate MachOFile from other implicitly generated files. Reviewed by Lang Hames. Differential Revision: http://reviews.llvm.org/D16103 llvm-svn: 257830 | ||||
* | Update for LLVM function name change. | Rui Ueyama | 2016-01-14 | 1 | -2/+2 |
| | | | | llvm-svn: 257801 | ||||
* | Set the folder for libraries to 'lld libraries'. NFC. | Pete Cooper | 2016-01-07 | 1 | -1/+1 |
| | | | | | | | | | | | | In a UI such as XCode, LLVM source files are in 'libraries' while clang files are in 'clang libraries'. This change moves the lld source to 'lld libraries' to make code browsing easier. It should be NFC as the build itself is still the same, just the structure in a UI differs. llvm-svn: 257001 | ||||
* | [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 -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] Initial support of the MIPS N32 ABI | Simon Atanasyan | 2015-08-28 | 7 | -10/+117 |
| | | | | llvm-svn: 246334 | ||||
* | [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 | ||||
* | [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 | ||||
* | Use the getSymbol with an explicit symbol table. NFC. | Rafael Espindola | 2015-07-23 | 2 | -12/+17 |
| | | | | llvm-svn: 243014 | ||||
* | [ELF] Apply segments from linker scripts | Denis Protivensky | 2015-07-23 | 2 | -2/+2 |
| | | | | | | | | | | | | | | 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 | ||||
* | [Mips] Fix addend writing for R_MIPS_REL32 relocation | Simon Atanasyan | 2015-07-21 | 2 | -11/+20 |
| | | | | llvm-svn: 242760 | ||||
* | [Mips] Handle R_MIPS_JALR relocation to omptimize jalr/jr instructions | Simon Atanasyan | 2015-07-21 | 2 | -10/+39 |
| | | | | llvm-svn: 242759 | ||||
* | Update for llvm api change. | Rafael Espindola | 2015-07-20 | 2 | -18/+18 |
| | | | | llvm-svn: 242701 | ||||
* | [Mips] Support MIPS big-endian 32/64-bits targets | Simon Atanasyan | 2015-07-13 | 10 | -60/+276 |
| | | | | llvm-svn: 242014 | ||||
* | [Mips] Factor out symbol type checking (PIC/non-PIC) into the separate function | Simon Atanasyan | 2015-07-03 | 3 | -4/+9 |
| | | | | | | No functional changes. llvm-svn: 241342 | ||||
* | [Mips] Reject R_MIPS_CALL16 against local symbols | Simon Atanasyan | 2015-06-26 | 1 | -14/+33 |
| | | | | llvm-svn: 240765 | ||||
* | [Mips] Use helper functions to determine relocations purpose | Simon Atanasyan | 2015-06-26 | 1 | -126/+91 |
| | | | | | | | | That allows to remove duplicated long switch/case statements. No functional changes. llvm-svn: 240764 | ||||
* | [Mips] Create LA25 stubs for all branch relocations | Simon Atanasyan | 2015-06-26 | 1 | -34/+57 |
| | | | | llvm-svn: 240763 | ||||
* | [Mips] Support R_MICROMIPS_HI0_LO16 relocation handling | Simon Atanasyan | 2015-06-22 | 2 | -1/+5 |
| | | | | llvm-svn: 240268 | ||||
* | [Mips] Support R_MICROMIPS_LITERAL relocation handling | Simon Atanasyan | 2015-06-22 | 2 | -0/+5 |
| | | | | llvm-svn: 240267 | ||||
* | [Mips] Support R_MIPS_LITERAL relocation handling | Simon Atanasyan | 2015-06-22 | 2 | -1/+5 |
| | | | | llvm-svn: 240266 | ||||
* | [Mips] Support R_MICROMIPS_SUB relocation handling | Simon Atanasyan | 2015-06-22 | 1 | -2/+6 |
| | | | | llvm-svn: 240265 | ||||
* | [Mips] Reject R_MIPS_GPREL32 against external symbols | Simon Atanasyan | 2015-06-22 | 1 | -2/+16 |
| | | | | llvm-svn: 240264 | ||||
* | [Mips] Reject position-dependent relocations in case of shared library linking | Simon Atanasyan | 2015-06-22 | 1 | -10/+70 |
| | | | | llvm-svn: 240262 | ||||
* | [Mips] Support R_MICROMIPS_HIGHER / R_MICROMIPS_HIGHEST relocations handling | Simon Atanasyan | 2015-06-22 | 1 | -0/+4 |
| | | | | llvm-svn: 240260 | ||||
* | [Mips] Support R_MIPS_HIGHER / R_MIPS_HIGHEST relocations handling | Simon Atanasyan | 2015-06-22 | 1 | -0/+14 |
| | | | | llvm-svn: 240259 | ||||
* | Simplify Pass::perform to take a SimpleFile& instead of unique_ptr<SimpleFile>& | David Blaikie | 2015-06-19 | 3 | -17/+17 |
| | | | | | | | | None of the implementations replace the SimpleFile with some other file, they just modify the SimpleFile in-place, so a direct reference to the file is sufficient. llvm-svn: 240167 | ||||
* | [lld] Allow LLD passes to return error codes. | Lang Hames | 2015-06-19 | 3 | -4/+8 |
| | | | | llvm-svn: 240147 | ||||
* | [Mips] Write inline some more relocation calculations | Simon Atanasyan | 2015-06-17 | 1 | -112/+20 |
| | | | | | | No functional changes. llvm-svn: 239961 | ||||
* | [Mips] Support R_MICROMIPS_GPREL16 / R_MICROMIPS_GPREL7_S2 relocations handling | Simon Atanasyan | 2015-06-17 | 2 | -0/+14 |
| | | | | llvm-svn: 239960 | ||||
* | [Mips] Support R_MIPS_16 relocation handling | Simon Atanasyan | 2015-06-17 | 1 | -0/+3 |
| | | | | llvm-svn: 239959 | ||||
* | [Mips] Do not use functions to calculate trivial relocations | Simon Atanasyan | 2015-06-17 | 1 | -15/+2 |
| | | | | | | No functional changes. llvm-svn: 239957 | ||||
* | [Mips] Support R_MIPS_PC16 relocation handling | Simon Atanasyan | 2015-06-13 | 1 | -2/+15 |
| | | | | llvm-svn: 239677 | ||||
* | [Mips] Use standard relocations R_MIPS_HI16/LO16 instead of custom variants | Simon Atanasyan | 2015-06-13 | 4 | -22/+8 |
| | | | | | | No functional changes. llvm-svn: 239676 | ||||
* | [Mips] Handle TLS relocations in -static linking mode | Simon Atanasyan | 2015-06-12 | 3 | -23/+42 |
| | | | | llvm-svn: 239615 | ||||
* | [Mips] Define _gpxxx symbols in both static/dynamic linking modes | Simon Atanasyan | 2015-06-12 | 1 | -8/+4 |
| | | | | llvm-svn: 239614 | ||||
* | [Mips] Setup EI_ABIVERSION flag | Simon Atanasyan | 2015-06-12 | 3 | -4/+20 |
| | | | | | | | - Set EI_ABIVERSION to '1' in case of non-PIC executable. - Set EI_ABIVERSION to '3' in case of using FP64/FP64A floating point ABI. llvm-svn: 239613 | ||||
* | [Mips] Factor out some bit manipulation code into separate routines | Simon Atanasyan | 2015-06-06 | 1 | -7/+13 |
| | | | | | | No functional changes. llvm-svn: 239226 | ||||
* | [Mips] Check symbol alignment for some MIPS relocations. | Simon Atanasyan | 2015-06-06 | 1 | -10/+13 |
| | | | | llvm-svn: 239225 | ||||
* | [Mips] Perform an overflow checking for relocations results | Simon Atanasyan | 2015-06-06 | 1 | -48/+80 |
| | | | | llvm-svn: 239224 | ||||
* | [Mips] Rearrange relocation related cases in the `switch` operator | Simon Atanasyan | 2015-06-06 | 1 | -12/+12 |
| | | | | | | No functional changes. llvm-svn: 239223 | ||||
* | [Mips] Use signed/unsigned types in relocation calculations consistently | Simon Atanasyan | 2015-06-06 | 1 | -52/+41 |
| | | | | | | No functional changes. llvm-svn: 239222 |