ld: Pass -z notext to linker for tests with DT_TEXTREL
[deliverable/binutils-gdb.git] / ld / testsuite / ld-size / size.exp
index 23b0b875586e1b68e0e7306755a70fe1dc2c7b05..20ebc01cc6fbcbb021e7408fdfc421875bf263c2 100644 (file)
@@ -114,7 +114,7 @@ run_cc_link_tests [list \
     ] \
     [list \
        "Build size-7" \
-       "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libsize-7.so" \
+       "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/libsize-7.so" \
        "$NOPIE_CFLAGS" \
        {size-7a.c} \
        {{readelf -rW size-7.rd}} \
@@ -129,7 +129,7 @@ run_cc_link_tests [list \
     ] \
     [list \
        "Build size-8" \
-       "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libsize-8.so" \
+       "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/libsize-8.so" \
        "$NOPIE_CFLAGS" \
        {size-8a.c} \
        {{readelf -rW size-8.rd}} \
@@ -277,7 +277,7 @@ run_ld_link_exec_tests [list \
     ] \
     [list \
        "Run size-8" \
-       "$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu \
+       "$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu,-z,notext \
         tmpdir/libsize-8.so" \
        "" \
        {size-8a.c} \
This page took 0.024556 seconds and 4 git commands to generate.