aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-18 10:27:23 +0930
committerAlan Modra <amodra@gmail.com>2019-09-18 21:32:51 +0930
commit1bdd8facfbf6f94fa9603f528c7e8bdf91d90bfd (patch)
treeb307c6f67e8ee5779a734c7ff2a9b5048fc86b16 /gdb
parenta3d181d2e784d57ea04728ac2f8f747fa798e78a (diff)
downloadgdb-1bdd8facfbf6f94fa9603f528c7e8bdf91d90bfd.zip
gdb-1bdd8facfbf6f94fa9603f528c7e8bdf91d90bfd.tar.gz
gdb-1bdd8facfbf6f94fa9603f528c7e8bdf91d90bfd.tar.bz2
PowerPC64, support medium model access to common symbols
Some versions of clang apparently generate non-PIC on powerpc64le to access common symbols. Since a common symbol and a strong definition with the same name should resolve to the strong definition we have the possibility of non-PIC attempting to access shared library variables. This is really a clanger since powerpc64le is supposed to be PIC by default, but let's see if ld can cope by generating .dynbss copies. * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs. (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16. (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when needs_copy even if all relocs are in rw sections. (dec_dynrel_count): Handle TOC16 relocs. (ppc64_elf_relocate_section): Support dynamic relocs for TOC16. (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy semantic change.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions