From 90cd770a7d42da0142e86eb095a9300c485dff9c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 15 Nov 2025 11:48:38 +0800 Subject: [PATCH] shared.exp: Use pr14862.map to build libpr14862.so commit dda8ddc56f160befb8f8fc3ddc69d66cec6ac4f8 Author: H.J. Lu Date: Tue Nov 20 22:17:27 2012 +0000 Remove ref_dynamic_nonweak added by accident used pr11138-1.map to build libpr14862.so by accident and pr14862.map should be used instead. The difference is pr11138-1.map: VERS_1 { global: bar; foo; local: *; }; vs pr14862.map: VERS_1 { global: bar; local: *; }; Since only "bar" is used, it didn't cause test failure. Use pr14862.map to build libpr14862.so as intended. PR ld/14862 * ld-elf/shared.exp: Replace pr11138-1.map with pr14862.map when building libpr14862.so. Signed-off-by: H.J. Lu --- ld/testsuite/ld-elf/shared.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index fad38120e6e..80a67929cfb 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -709,7 +709,7 @@ set build_tests { "-r -nostdlib" "" {pr14862-1.c} {} "libpr14862-1.o"} {"Build libpr14862.so" - "-shared -Wl,--version-script=pr11138-1.map" "-fPIC" + "-shared -Wl,--version-script=pr14862.map" "-fPIC" {pr14862-2.c} {} "libpr14862.so"} {"Build libneeded1b.so" "-shared" "-fPIC" -- 2.47.3