mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
c6e8a9a802
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.
14 lines
180 B
ArmAsm
14 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
|