Compare commits

...

4 Commits

Author SHA1 Message Date
GDB Administrator
2c04980a96 Automatic date update in version.in 2025-11-16 00:00:31 +00:00
H.J. Lu
9591d2b762 ld-elfvers: Remove vers8.c
commit c8a8d3bb27
Author:     Ian Lance Taylor <ian@airs.com>
AuthorDate: Thu Mar 13 02:46:09 1997 +0000
Commit:     Ian Lance Taylor <ian@airs.com>
CommitDate: Thu Mar 13 02:46:09 1997 +0000

    Wed Mar 12 21:44:19 1997  Eric Youngdale  <eric@andante.jic.com>

            * ld-elfvers/vers.exp, *: New tests for symbol versioning.
            * config/default.exp: Set ar and strip.

added an unused vers8.c.  There is

build_vers_lib_pic "vers8" vers1.c vers8 vers8.map "" vers8.ver vers1.dsym vers1.sym

The differences are:

1. Version scripts:

vers1.map:

VERS_1.1 {
	 local:
		 hide_old*;
		 hide_original*;
		 hide_new*;
};

VERS_1.2 {
} VERS_1.1;

VERS_2.0 {
		 show_bar1; show_bar2;
} VERS_1.2;

vers8.map:

VERSION {
	VERS_1.1 {
		 local:
			 hide_old*;
			 hide_original*;
			 hide_new*;
	};

	VERS_1.2 {
	} VERS_1.1;

	VERS_2.0 {
			 show_bar1; show_bar2;
	} VERS_1.2;
}

2. Symbol version dump:

vers1.ver:

Version definitions:
[1-4] 0x01 0x0c96425f vers1.so
[1-4] 0x00 0x0a7927b1 VERS_1.1
[1-4] 0x00 0x0a7927b2 VERS_1.2
	VERS_1.1
[1-4] 0x00 0x0a7922b0 VERS_2.0
	VERS_1.2

vers8.ver:

Version definitions:
[1-4] 0x01 0x0c96b25f vers8.so
[1-4] 0x00 0x0a7927b1 VERS_1.1
[1-4] 0x00 0x0a7927b2 VERS_1.2
	VERS_1.1
[1-4] 0x00 0x0a7922b0 VERS_2.0
	VERS_1.2

We can remove the unused vers8.c.

	PR ld/33631
	* testsuite/ld-elfvers/vers8.c: Removed.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-11-16 07:36:21 +08:00
H.J. Lu
e9d7b55a8a elf: Wire up PR ld/21086 test
commit 3c5fce9bc2
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Apr 21 12:00:55 2017 -0700

    Require --no-dynamic-linker with -static -E/--dynamic-list

added pr21086.c and pr21086.list without wiring them up.  Wire them up to
verify that there is no dynamic section with -static -E/--dynamic-list.

	PR ld/21086
	PR ld/33630
	* testsuite/ld-elf/pr21086.rd: New file.
	* testsuite/ld-elf/shared.exp: Wire PR ld/21086 test.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-11-16 07:14:09 +08:00
H.J. Lu
90cd770a7d 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>
2025-11-15 11:55:08 +08:00
4 changed files with 11 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
In releases, the date is not included in either version strings or
sonames. */
#define BFD_VERSION_DATE 20251115
#define BFD_VERSION_DATE 20251116
#define BFD_VERSION @bfd_version@
#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
#define REPORT_BUGS_TO @report_bugs_to@

View File

@@ -0,0 +1 @@
There is no dynamic section in this file.

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"
@@ -935,6 +935,14 @@ run_cc_link_tests [list \
{} \
"pr31482d-no-lto.a" \
] \
[list \
"Build pr21086" \
"-static -Wl,--dynamic-list=pr21086.list" \
"" \
{pr21086.c} \
{{readelf -d pr21086.rd}} \
"pr21086" \
] \
]
# pr19073.s uses .set, which has a different meaning on alpha.

View File

@@ -1,5 +0,0 @@
int
main()
{
return a(1) + b(1);
}