]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Disable GOT relaxation with data prefix
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Nov 2018 17:01:26 +0000 (09:01 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Nov 2018 12:54:10 +0000 (04:54 -0800)
commit3050b43068674882b01a51351c5c39e950f0ee41
treea6ca4e68511a5f4b9438b893f4c79f06f13a3599
parent29c0ef0f02e291d170cf56cc13dad640351cf802
x86: Disable GOT relaxation with data prefix

Since linker GOT relaxation isn't valid for 16-bit GOT access, we should
disable GOT relaxation with data prefix.

gas/

PR gas/23854
* config/tc-i386.c (output_disp): Disable GOT relaxation with
data prefix.
* testsuite/gas/i386/mixed-mode-reloc32.d: Updated.

ld/

PR gas/23854
* testsuite/ld-i386/i386.exp: Run pr23854.
* testsuite/ld-x86-64/x86-64.exp: Likewwise.
* testsuite/ld-i386/pr23854.d: New file.
* testsuite/ld-i386/pr23854.s: Likewwise.
* testsuite/ld-i386/pr23854.d: Likewwise.
* testsuite/ld-x86-64/pr23854.d: Likewwise.
* testsuite/ld-x86-64/pr23854.s: Likewwise.

(cherry picked from commit e60f4d3bdac25f02875afe36b7436bc2dfbbb978)
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/mixed-mode-reloc32.d
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr23854.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr23854.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr23854.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr23854.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp