binutils-gdb/ld/testsuite/ld-elf/pr19789.s
H.J. Lu 9c1d7a0876 Don't create dynamic sections when relocatable
Since dynamic sections aren't applicable to relocatable file, don't
create dynamic sections for -E/--dynamic-list when relocatable.

bfd/

	PR ld/19789
	* elflink.c (elf_link_add_object_symbols): Create dynamic sections
	for -E/--dynamic-list only when not relocatable.

ld/

	PR ld/19789
	* testsuite/ld-elf/pr19789.d: New file.
	* testsuite/ld-elf/pr19789.s: Likewise.
2016-03-08 20:45:52 -08:00

10 lines
150 B
ArmAsm

.text
.globl __foo
.type __foo, %function
__foo:
.byte 0
.globl __foo1
.set __foo1, __foo
.symver __foo,foo@@VERS.2
.symver __foo1,foo@VERS.1