shared.exp: Use pr14862.map to build libpr14862.so

commit dda8ddc56f
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>
This commit is contained in:
H.J. Lu
2025-11-15 11:48:38 +08:00
parent efbd9add96
commit 90cd770a7d

View 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"