This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[LD][Testsuite] Add --no-dynamic-linker option to dynamic-1 rdynamic-1 test case.
- From: Renlin Li <renlin dot li at foss dot arm dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "hjl dot tools at gmail dot com" <hjl dot tools at gmail dot com>
- Date: Mon, 12 Jun 2017 11:13:22 +0100
- Subject: [LD][Testsuite] Add --no-dynamic-linker option to dynamic-1 rdynamic-1 test case.
- Authentication-results: sourceware.org; auth=none
Hi all,
After the change here:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=3c5fce9bc29b216af7d10f8d6e4d8c3f11a48359
dynamic-1 rdynamic-1 start to fail.
It is required to have --no-dynamic-linker together with -static -E/--dynamic-list before
adding dynamic symbol table to static executable.
This patch add "--no-dynamic-linker" to the testes. Okay to commit?
Regards,
Renlin
ld/ChangeLog:
2017-06-12 Renlin Li <renlin.li@arm.com>
* testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker option to
rdynamic-1 and dynamic-1 tests.
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 070b51a..7c4e0a2 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -382,10 +382,10 @@ set build_tests {
"" ""
{pr2404b.c} {} "libpr2404b.a"}
{"Build rdynamic-1"
- "-Wl,-export-dynamic,--gc-sections" "-ffunction-sections"
+ "-Wl,--no-dynamic-linker,-export-dynamic,--gc-sections" "-ffunction-sections"
{rdynamic-1.c} {{readelf {-s} rdynamic-1.rd}} "rdynamic-1"}
{"Build dynamic-1"
- "-Wl,--dynamic-list,dynamic-1.syms -Wl,--gc-sections" "-ffunction-sections"
+ "-Wl,--no-dynamic-linker,--dynamic-list,dynamic-1.syms -Wl,--gc-sections" "-ffunction-sections"
{dynamic-1.c} {{readelf {-s} dynamic-1.rd}} "dynamic-1"}
{"Build libpr16496a.so"
"-shared -Wl,--version-script=pr16496a.map" "-fPIC"