Summary: | x86-64: Omit _GLOBAL_OFFSET_TABLE_ for call foo@PLT | ||
---|---|---|---|
Product: | binutils | Reporter: | Fangrui Song <i> |
Component: | gas | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hjl.tools, jbeulich |
Priority: | P2 | ||
Version: | 2.37 | ||
Target Milestone: | 2.37 | ||
Host: | Target: | x86_64-* | |
Build: | Last reconfirmed: |
Description
Fangrui Song
2021-01-13 04:19:29 UTC
The master branch has been updated by H.J. Lu <hjl@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=844bf810cf9feebe50772c29d72256ec3c872270 commit 844bf810cf9feebe50772c29d72256ec3c872270 Author: H.J. Lu <hjl.tools@gmail.com> Date: Wed Jan 13 05:42:11 2021 -0800 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. Fixed for 2.37. Shouldn't some of the TLS relocs be similarly marked as not requiring GOT_symbol? (In reply to Jan Beulich from comment #3) > Shouldn't some of the TLS relocs be similarly marked as not requiring > GOT_symbol? Maybe. |