binutils-gdb/ld/testsuite/ld-xtensa
Max Filippov 2487ef07c2 bfd: xtensa: fix shrink_dynamic_reloc_sections for export-dynamic
shrink_dynamic_reloc_sections must remove PLT entry that was created for
an undefined weak symbol in the presence of --export-dynamic option when
relaxation coalesces literals pointing to that symbol. This fixes the
following assertion:

  ld: BFD (GNU Binutils) 2.31.1 internal error, aborting at
  elf32-xtensa.c:3292 in elf_xtensa_finish_dynamic_sections

2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
bfd/
	* elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
	info->export_dynamic to the conditional.

ld/
	* testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
	test definition.
	* testsuite/ld-xtensa/xtensa.exp
	(relax-undef-weak-pie-export-dynamic): Add new test.
2019-03-29 10:02:10 -07:00
..
call_overflow1.s
call_overflow2.s
call_overflow3.s
call_overflow.d
coalesce1.s
coalesce2.s
coalesce.d
coalesce.t
diff_overflow1.s
diff_overflow2.s
diff_overflow.d
lcall1.s
lcall2.s
lcall.d
lcall.t
relax-static-defs.s
relax-static-local-pie.d
relax-static-local-shared.d
relax-static-local.s
relax-static-pie.d
relax-static-shared.d
relax-static.s
relax-undef-weak-local-pie.d
relax-undef-weak-local-shared.d
relax-undef-weak-local.s
relax-undef-weak-pie-export-dynamic.d
relax-undef-weak-pie.d
relax-undef-weak-shared.d
relax-undef-weak.s
tlsbin.dd
tlsbin.rd
tlsbin.s
tlsbin.sd
tlsbin.td
tlslib.s
tlspic1.s
tlspic2.s
tlspic.dd
tlspic.rd
tlspic.sd
tlspic.td
xtensa-linux.exp
xtensa.exp