]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[LD][Testsuite] Add --no-dynamic-linker option to dynamic-1 rdynamic-1 test case.
authorRenlin Li <renlin.li@arm.com>
Tue, 13 Jun 2017 13:03:47 +0000 (14:03 +0100)
committerRenlin Li <renlin.li@arm.com>
Tue, 13 Jun 2017 13:35:01 +0000 (14:35 +0100)
arm-none-eabi-ld supports shared libraries. However, the toolchain may be
configured to generate statically linked executable by default.

It is required to have --no-dynamic-linker option before adding dynamic symbol
to static executable.
For dynamically linked executable, the behavior won't change.

ld/ChangeLog
2017-06-13  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.

ld/ChangeLog
ld/testsuite/ld-elf/shared.exp

index e21f447ea25fc0cc0542b9fe4b2483b585721e33..1c812113b181a891bdb667d90f804f68a1ea80a6 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-13  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.
+
 2017-06-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
index 070b51aaa9128ec618915f6a91bc84075c4a907b..7c4e0a2b39bc3b4b194d2cb488c941adee8ae577 100644 (file)
@@ -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"