[binutils-gdb] shared.exp: Use pr14862.map to build libpr14862.so

H.J. Lu hjl@sourceware.org
Sat Nov 15 03:58:58 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=90cd770a7d42da0142e86eb095a9300c485dff9c

commit 90cd770a7d42da0142e86eb095a9300c485dff9c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Nov 15 11:48:38 2025 +0800

    shared.exp: Use pr14862.map to build libpr14862.so
    
    commit dda8ddc56f160befb8f8fc3ddc69d66cec6ac4f8
    Author: H.J. Lu <hjl.tools@gmail.com>
    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 <hjl.tools@gmail.com>

Diff:
---
 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"


More information about the Binutils-cvs mailing list