Browse Source
binutils/ PR 27128 * nm.c (print_symname): Append version string to symbol name before printing the lot under control of "form". Append version to demangled names too. ld/ PR 27128 * testsuite/ld-elf/pr27128.s: New file. * testsuite/ld-elf/pr27128.t: Likewise. * testsuite/ld-elf/pr27128a.d: Likewise. * testsuite/ld-elf/pr27128b.d: Likewise. * testsuite/ld-elf/pr27128c.d: Likewise. * testsuite/ld-elf/pr27128d.d: Likewise. * testsuite/ld-elf/pr27128e.d: Likewise.binutils-2_36-branch
10 changed files with 133 additions and 13 deletions
@ -0,0 +1,13 @@ |
|||
.text |
|||
.globl foo |
|||
.type foo,%function |
|||
foo: |
|||
.space 16 |
|||
.size foo, .-foo |
|||
.symver foo,foo@@VERS_2.0,remove |
|||
.globl _Zrm1XS_ |
|||
.type _Zrm1XS_,%function |
|||
_Zrm1XS_: |
|||
.space 16 |
|||
.size _Zrm1XS_, .-_Zrm1XS_ |
|||
.symver _Zrm1XS_,_Zrm1XS_@@VERS_2.0,remove |
|||
@ -0,0 +1,6 @@ |
|||
VERS_2.0 { |
|||
global: |
|||
foo; _Zrm1XS_; |
|||
local: |
|||
*; |
|||
}; |
|||
@ -0,0 +1,16 @@ |
|||
#source: pr27128.s |
|||
#ld: -shared -version-script pr27128.t |
|||
#nm: -n -P |
|||
#target: [check_shared_lib_support] |
|||
#notarget: [is_underscore_target] |
|||
# _Zrm1XS_ doesn't have an extra underscore. |
|||
#xfail: hppa64-*-* tic6x-*-* |
|||
# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase |
|||
|
|||
#... |
|||
VERS_2\.0 A 0+ |
|||
#... |
|||
foo@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#... |
|||
_Zrm1XS_@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#pass |
|||
@ -0,0 +1,16 @@ |
|||
#source: pr27128.s |
|||
#ld: -shared -version-script pr27128.t |
|||
#nm: -n -D --format=posix |
|||
#target: [check_shared_lib_support] |
|||
#notarget: [is_underscore_target] |
|||
# _Zrm1XS_ doesn't have an extra underscore. |
|||
#xfail: hppa64-*-* tic6x-*-* |
|||
# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase |
|||
|
|||
#... |
|||
VERS_2\.0 A 0+ |
|||
#... |
|||
foo@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#... |
|||
_Zrm1XS_@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#pass |
|||
@ -0,0 +1,16 @@ |
|||
#source: pr27128.s |
|||
#ld: -shared -version-script pr27128.t |
|||
#nm: -n --format=sysv |
|||
#target: [check_shared_lib_support] |
|||
#notarget: [is_underscore_target] |
|||
# _Zrm1XS_ doesn't have an extra underscore. |
|||
#xfail: hppa64-*-* tic6x-*-* |
|||
# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase |
|||
|
|||
#... |
|||
VERS_2\.0 +\|0+\| +A +\| +OBJECT\| +\| +\|\*ABS\* |
|||
#... |
|||
foo@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text |
|||
#... |
|||
_Zrm1XS_@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text |
|||
#pass |
|||
@ -0,0 +1,16 @@ |
|||
#source: pr27128.s |
|||
#ld: -shared -version-script pr27128.t |
|||
#nm: -n -D --format=sysv |
|||
#target: [check_shared_lib_support] |
|||
#notarget: [is_underscore_target] |
|||
# _Zrm1XS_ doesn't have an extra underscore. |
|||
#xfail: hppa64-*-* tic6x-*-* |
|||
# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase |
|||
|
|||
#... |
|||
VERS_2\.0 +\|0+\| +A +\| +OBJECT\| +\| +\|\*ABS\* |
|||
#... |
|||
foo@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text |
|||
#... |
|||
_Zrm1XS_@@VERS_2\.0 +\|[0-9a-f]+\| +T +\| +FUNC\|0+10\| +\|\.text |
|||
#pass |
|||
@ -0,0 +1,16 @@ |
|||
#source: pr27128.s |
|||
#ld: -shared -version-script pr27128.t |
|||
#nm: -n --demangle -D --format=posix |
|||
#target: [check_shared_lib_support] |
|||
#notarget: [is_underscore_target] |
|||
# _Zrm1XS_ doesn't have an extra underscore. |
|||
#xfail: hppa64-*-* tic6x-*-* |
|||
# hppa64 uses dot-symbols, tic6x DYN lacks dynamic sections for this testcase |
|||
|
|||
#... |
|||
VERS_2\.0 A 0+ |
|||
#... |
|||
foo@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#... |
|||
operator%\(X, X\)@@VERS_2\.0 T [0-9a-f]+ 10 |
|||
#pass |
|||
Loading…
Reference in new issue