binutils-gdb/ld/testsuite/ld-elf/pr19073.s
H.J. Lu 4373f8af3d Skip the unversioned definition after the default version
We may see an unversioned definition after the default version.  We
should skip the unversioned definition in this case.

bfd/

	PR ld/19073
	* elflink.c (_bfd_elf_add_default_symbol): Skip the unversioned
	definition after the default version.

ld/testsuite/

	PR ld/19073
	* ld-elf/pr19073.map: New file.
	* ld-elf/pr19073.rd: Likewise.
	* ld-elf/pr19073.s: Likewise.
	* ld-elf/shared.exp (build_tests): Add tests for PR ld/19073.
2015-10-12 04:57:16 -07:00

10 lines
128 B
ArmAsm

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