Files
clang-p2996/lld/test/ELF/Inputs
George Rimar e7bf968803 [ELF] - Stop producing broken output for R_386_GOT32[X] relocations.
Previously we silently produced broken output for R_386_GOT32X/R_386_GOT32 
relocations if they were used to compute the address of the symbol’s global
offset table entry without base register when position-independent code is disabled.

Situation happened because of recent ABI changes. Released ABI mentions that
R_386_GOT32X can be calculated in a two different ways (so we did not follow ABI here 
before this patch), but draft ABI also mentions R_386_GOT32 relocation here. 
We should use the same calculations for both relocations.

Problem is that we always calculated them as G + A - GOT (offset from end of GOT),
but for case when PIC is disabled, according to i386 ABI calculation should be G + A,
what should produce just an address in GOT finally.

ABI: https://github.com/hjl-tools/x86-psABI/wiki/intel386-psABI-draft.pdf (p36, p60).
llvm-svn: 299812
2017-04-08 06:14:14 +00:00
..
2016-01-13 13:04:46 +00:00
2016-06-28 21:48:33 +00:00
2016-06-07 09:31:52 +00:00
2016-02-25 18:43:51 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2016-03-31 12:09:36 +00:00
2016-04-04 16:02:39 +00:00
2016-11-05 22:58:01 +00:00
2016-03-11 14:34:44 +00:00
2016-12-03 15:26:18 +00:00
2016-04-08 20:49:31 +00:00
2016-04-08 20:49:31 +00:00
2016-07-25 16:51:52 +00:00
2016-11-23 05:14:01 +00:00
2017-02-13 16:21:34 +00:00
2017-02-13 16:21:34 +00:00