Commit a1585b6
committed
[IRGen] Don't use GOTPCREL relocations for x86 ELF.
Unforunately, x86 ELF linkers like to optimize GOTPCREL relocations by
replacing `mov` instructions that go via the GOT with `lea` instructions
that do not.
That would be fine, but they aren't very selective and will happily
perform this transformation in non-code sections if they think that
the bytes before a relocation look like a `mov` instruction.
This corrupts our metadata.
rdar://1481680981 parent e55f033 commit a1585b6
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3699 | 3699 | | |
3700 | 3700 | | |
3701 | 3701 | | |
3702 | | - | |
| 3702 | + | |
3703 | 3703 | | |
3704 | 3704 | | |
3705 | 3705 | | |
3706 | 3706 | | |
| 3707 | + | |
3707 | 3708 | | |
3708 | | - | |
| 3709 | + | |
| 3710 | + | |
3709 | 3711 | | |
3710 | 3712 | | |
3711 | 3713 | | |
| |||
0 commit comments