Browse Source
We need to update symbol version for symbols from linker script. bfd/ PR ld/19698 * elflink.c (bfd_elf_record_link_assignment): Set versioned if symbol version is unknown. ld/ PR ld/19698 * testsuite/ld-elf/pr19698.d: New file. * testsuite/ld-elf/pr19698.s: Likewise. * testsuite/ld-elf/pr19698.t: Likewise.binutils-2_27-branch
6 changed files with 52 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
#ld: -shared $srcdir/$subdir/pr19698.t |
|||
#readelf : --dyn-syms --wide |
|||
#target: *-*-linux* *-*-gnu* *-*-solaris* |
|||
|
|||
Symbol table '\.dynsym' contains [0-9]+ entries: |
|||
#... |
|||
+[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +foo@VERS.1 |
|||
#... |
|||
+[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +foo@@VERS.2 |
|||
#pass |
|||
@ -0,0 +1,5 @@ |
|||
.text |
|||
.globl foo |
|||
.type foo, %function |
|||
foo: |
|||
.byte 0 |
|||
@ -0,0 +1,11 @@ |
|||
"foo@VERS.1" = foo; |
|||
|
|||
VERSION { |
|||
VERS.2 { |
|||
global: |
|||
foo; |
|||
}; |
|||
|
|||
VERS.1 { |
|||
}; |
|||
} |
|||
Loading…
Reference in new issue