]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
x86: Don't generate GOT_symbol for PLT relocations
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Jan 2021 13:42:11 +0000 (05:42 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Jan 2021 13:42:27 +0000 (05:42 -0800)
commit844bf810cf9feebe50772c29d72256ec3c872270
tree8f5b2e5910362329d797430702357726d8763e9a
parent5347ed60c50b79958f83963bd7d01da0372c339b
x86: Don't generate GOT_symbol for PLT relocations

Don't generate the _GLOBAL_OFFSET_TABLE_ symbol for PLT relocations
since it isn't needed.

PR gas/27178
* config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
Don't generate GOT_symbol for PLT relocations.
* testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
* testsuite/gas/i386/no-got.d: New file.
* testsuite/gas/i386/no-got.s: Likewise.
* testsuite/gas/i386/x86-64-no-got.d: Likewise.
* testsuite/gas/i386/x86-64-no-got.s: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/no-got.d [new file with mode: 0644]
gas/testsuite/gas/i386/no-got.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-no-got.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-no-got.s [new file with mode: 0644]