llvm-project/lld/test
Simon Atanasyan 57830b60dc [ELF][MIPS] Implement R_MIPS_GPREL16/R_MIPS_GPREL32 relocations
The R_MIPS_GPREL16 / R_MIPS_GPREL32 relocations use the following
expressions for calculations:
```
local symbol:  S + A + GP0 - GP
global symbol: S + A - GP

GP  - Represents the final gp value, i.e. _gp symbol
GP0 - Represents the gp value used to create the relocatable object
```
The GP0 value is taken from the .reginfo data section defined by an object
file. To implement that I keep a reference to `MipsReginfoInputSection`
in the `ObjectFile` class. This reference is used by the
`ObjectFile::getMipsGp0` method to return the GP0 value.

Differential Revision: http://reviews.llvm.org/D15760

llvm-svn: 256416
2015-12-25 13:02:13 +00:00
..
COFF COFF: Non-external COMDAT sections sholud not be merged by ICF. 2015-12-03 02:23:33 +00:00
Driver Rename the gnu flavour to gnu old. 2015-11-16 08:54:19 +00:00
ELF [ELF][MIPS] Implement R_MIPS_GPREL16/R_MIPS_GPREL32 relocations 2015-12-25 13:02:13 +00:00
LinkerScript Add PHDR and FILL parsing. 2015-05-28 00:14:58 +00:00
Unit [lit] Python 3. 2014-03-26 00:53:48 +00:00
core Delete unnecessary generality in loadFile. 2015-04-24 15:51:45 +00:00
darwin Delete unnecessary generality in loadFile. 2015-04-24 15:51:45 +00:00
mach-o Regenerated test according to the example assembly at the top. NFC. 2015-12-18 23:43:17 +00:00
old-elf Make ELF2 the default. 2015-11-17 07:19:44 +00:00
CMakeLists.txt [MachO] Use llvm-readobj in lieu of macho-dump. 2015-09-22 17:31:01 +00:00
lit.cfg [lld] Watch out for tool names inside paths when substituting tool-paths in lit. 2015-12-11 22:09:03 +00:00
lit.site.cfg.in [lit] Python 3. 2014-03-26 00:53:48 +00:00