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>
This commit is contained in:
H.J. Lu
2025-11-16 07:08:27 +08:00
parent 90cd770a7d
commit e9d7b55a8a
2 changed files with 9 additions and 0 deletions

View File

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

View File

@@ -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.