old-cross-binutils/ld/testsuite/ld-elf/pr18735.s
H.J. Lu c6e8a9a802 Don't change the default symbol for relocatable link
We should change the default symbol for the versioned symbol only when
not performing a relocatable link.

bfd/

	PR ld/18735
	* elflink.c (_bfd_elf_add_default_symbol): Add the default
	symbol if not performing a relocatable link.
	(elf_link_add_object_symbols): Adjust the default symbol if
	not performing a relocatable link.

ld/testsuite/

	PR ld/18735
	* ld-elf/pr18735.d: New file.
	* ld-elf/pr18735.s: Likewise.
2015-07-30 03:28:00 -07:00

13 lines
180 B
ArmAsm

.data
.symver foo, foo@FOO
.symver bar, bar@@FOO
.globl foo
.type foo, %object
foo:
.byte 0
.size foo, .-foo
.globl bar
.type bar, %object
bar:
.byte 0
.size bar, .-bar