diff options
author | Alexandre Oliva <oliva@adacore.com> | 2025-02-08 03:12:24 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2025-02-08 03:12:24 -0300 |
commit | fd82d5ddf57a2f77491241521569535a8c7b3782 (patch) | |
tree | 18743e46b741aad82caed15faa48f1cd279fc1b5 /bfd/mpw-make.in | |
parent | 66e701c09229d389f4046fddae586278fe3e014f (diff) | |
download | fsf-binutils-gdb-master.zip fsf-binutils-gdb-master.tar.gz fsf-binutils-gdb-master.tar.bz2 |
GCC testsuite gcc.dg/20050321-2.c hit link errors on undefined
_GLOBAL_OFFSET_TABLE_. The compiler output referenced only
_GLOBAL_OFFSET_TABLE_-offsets to set it up, and to compute the
GOT-relative address of local symbols, none of which triggered the
machinery that enabled the creation of the dynamic section, so
_GLOBAL_OFFSET_TABLE_ ended up undefined.
Enable the dynamic section if we find a relocation involving
_GLOBAL_OFFSET_TABLE_. While at that, optimize checks for references
to it.
for bfd/ChangeLog
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Check for
_GLOBAL_OFFSET_TABLE_ references early, then compare hashed
symbols instead of strings.
(_bfd_sparc_elf_relocate_section): Compare hashed symbols.
for ld/ChangeLog
* testsuite/ld-sparc/got-def.s: New test.
* testsuite/ld-sparc/sparc.exp: Add it.
Diffstat (limited to 'bfd/mpw-make.in')
0 files changed, 0 insertions, 0 deletions