old-cross-binutils/ld/testsuite/ld-arc
Cupertino Miranda 980aa3e6df 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.
2016-08-26 12:09:17 +02:00
..
arc.exp Tidy up debugging in the ARC port of the BFD library. 2016-07-15 12:00:03 +01:00
got-01.d Fix segfault in ARC linker when generating got entries for local symbols. 2016-07-22 15:10:31 +01:00
got-01.s Fix segfault in ARC linker when generating got entries for local symbols. 2016-07-22 15:10:31 +01:00
nps-1.s
nps-1a.d
nps-1b.d
nps-1b.err [ARC] Update test. 2016-07-11 15:41:23 +02:00
sda-relocs.dd [ARC] Fix/improve small data support. 2016-07-14 10:08:57 +02:00
sda-relocs.ld [ARC] Fix/improve small data support. 2016-07-14 10:08:57 +02:00
sda-relocs.rd [ARC] Fix/improve small data support. 2016-07-14 10:08:57 +02:00
sda-relocs.s [ARC] Fix/improve small data support. 2016-07-14 10:08:57 +02:00
tls_gd-01.d Dynamic TLS GOT entries would not be relocated. 2016-08-26 12:09:17 +02:00
tls_gd-01.s Dynamic TLS GOT entries would not be relocated. 2016-08-26 12:09:17 +02:00
tls_ie-01.d Content for TLS_IE_GOT not written to .got. 2016-08-26 12:09:17 +02:00
tls_ie-01.s Content for TLS_IE_GOT not written to .got. 2016-08-26 12:09:17 +02:00