diff options
author | Cupertino Miranda <cmiranda@synopsys.com> | 2016-07-21 15:32:35 +0200 |
---|---|---|
committer | Cupertino Miranda <cmiranda@synopsys.com> | 2016-08-26 12:09:17 +0200 |
commit | 980aa3e6dfeb0f018915f65be4b2987667f31fe9 (patch) | |
tree | 148ba0cdbe9f1296b8d6dec12fb9eac8ab4edb86 /bfd/i386netbsd.c | |
parent | 65b94e90977efe3235381708f5a3e0d541026d88 (diff) | |
download | gdb-980aa3e6dfeb0f018915f65be4b2987667f31fe9.zip gdb-980aa3e6dfeb0f018915f65be4b2987667f31fe9.tar.gz gdb-980aa3e6dfeb0f018915f65be4b2987667f31fe9.tar.bz2 |
Dynamic TLS GOT entries would not be relocated.
Forgot to set should_relocate to TRUE in case of GOT and TLS relocations of
undefined symbols for shared libraries.
In dynamic libraries if symbol is not known the instruction relocation would
not be resolved to point to the respective .got entry.
A test was created to detect similar future mistakes.
bfd/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
* elf32-arc.c (elf_arc_relocate_section): Changed. Set should_relocate
to TRUE for GOT and TLS relocs.
ld/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
* ld/testsuite/ld-arc/tls_gd-01.s: Added a testcase for this patch.
* ld/testsuite/ld-arc/tls_gd-01.d: Likewise.
Diffstat (limited to 'bfd/i386netbsd.c')
0 files changed, 0 insertions, 0 deletions