]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
shared.exp: Use pr14862.map to build libpr14862.so
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Nov 2025 03:48:38 +0000 (11:48 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Nov 2025 03:55:08 +0000 (11:55 +0800)
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>
ld/testsuite/ld-elf/shared.exp

index fad38120e6ecf83e66a5a55cfdf6528d0bcc954b..80a67929cfb4e8150b760e4fae79c53df8893b44 100644 (file)
@@ -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"