]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Link x86-64 mark-plt-1.so with --no-as-needed
authorAlan Modra <amodra@gmail.com>
Tue, 6 Feb 2024 02:29:06 +0000 (12:59 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Feb 2024 07:02:31 +0000 (17:32 +1030)
Fixes
FAIL: Build mark-plt-1.so
where gcc is built with default --as-needed.

* testsuite/ld-x86-64/x86-64.exp (Build mark-plt-1.so): Pass
--no-as-needed.

ld/testsuite/ld-x86-64/x86-64.exp

index a1a0422cea2b16a3da11dfdb3450cfc50769b161..e370f393a7a53194ec60c5a3334e6750f9e7ac25 100644 (file)
@@ -2263,7 +2263,7 @@ if { [check_compiler_available] } {
     run_cc_link_tests [list \
        [list \
            "Build mark-plt-1.so" \
-           "-shared -Wl,-z,mark-plt,-z,pack-relative-relocs" \
+           "-shared -Wl,--no-as-needed,-z,mark-plt,-z,pack-relative-relocs" \
            "-fPIC" \
            { mark-plt-1.s } \
            {{readelf {-W --version-info} mark-plt-1a.rd} \