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_overflow.d bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow1.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow2.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow3.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
coalesce.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
coalesce.t
coalesce1.s
coalesce2.s
diff_overflow.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
diff_overflow1.s Use signed data type for R_XTENSA_DIFF* relocation offsets. 2014-05-08 01:55:41 +04:00
diff_overflow2.s Use signed data type for R_XTENSA_DIFF* relocation offsets. 2014-05-08 01:55:41 +04:00
lcall.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
lcall.t
lcall1.s
lcall2.s
relax-static-defs.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-pie-export-dynamic.d bfd: xtensa: fix shrink_dynamic_reloc_sections for export-dynamic 2019-03-29 10:02:10 -07:00
relax-undef-weak-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
tlsbin.dd 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlsbin.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlsbin.s 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlsbin.sd 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlsbin.td 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlslib.s 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlspic.dd 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlspic.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlspic.sd 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlspic.td 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlspic1.s 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
tlspic2.s 2008-08-20 Bob Wilson <bob.wilson@acm.org> 2008-08-20 23:28:59 +00:00
xtensa-linux.exp Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
xtensa.exp bfd: xtensa: fix shrink_dynamic_reloc_sections for export-dynamic 2019-03-29 10:02:10 -07:00