This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[LD][Testsuite] Add --no-dynamic-linker option to dynamic-1 rdynamic-1 test case.

Hi all,

After the change here:;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?



2017-06-12  Renlin Li  <>

	* 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"}
    "-shared -Wl," "-fPIC"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]