980aa3e6df
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. |
||
---|---|---|
.. | ||
arc.exp | ||
got-01.d | ||
got-01.s | ||
nps-1.s | ||
nps-1a.d | ||
nps-1b.d | ||
nps-1b.err | ||
sda-relocs.dd | ||
sda-relocs.ld | ||
sda-relocs.rd | ||
sda-relocs.s | ||
tls_gd-01.d | ||
tls_gd-01.s | ||
tls_ie-01.d | ||
tls_ie-01.s |