OSDN Git Service

[MC/ELF] Implement support for GOTPCRELX/REX_GOTPCRELX.
authorDavide Italiano <davide@freebsd.org>
Sun, 24 Apr 2016 01:03:57 +0000 (01:03 +0000)
committerDavide Italiano <davide@freebsd.org>
Sun, 24 Apr 2016 01:03:57 +0000 (01:03 +0000)
commit3cabbfe89f28971a679337fe0f75268c31238714
tree4cbb2e8bbdf132aaa371e0bd11f2a1ddbc97678d
parent678f8856719b83912ed1135653992a05fecafab4
[MC/ELF] Implement support for GOTPCRELX/REX_GOTPCRELX.

The option to control the emission of the new relocations
is -relax-relocations (blatantly copied from GNU as).
It can't be enabled by default because it breaks relatively
recent versions of ld.bfd/ld.gold (late 2015).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267307 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmInfo.h
lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
test/MC/ELF/got-relaxed.s [new file with mode: 0644]