Add ability to change linker warning messages into errors when reporting executable...
[binutils-gdb.git] / ld / testsuite / ld-elf / elf.exp
index 9e2c77d28b7e253557926b20f616a9d38fa98237..545d59f9f5f2fa16ecc94b50700cc22df40f9ba7 100644 (file)
@@ -217,7 +217,7 @@ if {   [istarget *-*-*linux*]
     || [istarget *-*-gnu*] } {
     run_ld_link_tests [list \
        [list "stack exec" \
-           "-z execstack" \
+           "-z execstack --no-error-execstack" \
            "" \
            "" \
            {stack.s} \
@@ -264,14 +264,14 @@ if {   [istarget *-*-*linux*]
     # of the first test by forcing the flags.
     run_ld_link_tests [list \
        [list "PR ld/29072 (warn about an executable .note.GNU-stack)" \
-           "-e 0 --warn-execstack --warn-rwx-segments" \
+           "-e 0 --warn-execstack --warn-rwx-segments --no-error-rwx-segments --no-error-execstack" \
            "" \
            "" \
            {pr29072-a.s} \
            {{ld pr29072.a.warn}} \
            "pr29072-a.exe"] \
        [list "PR 29072 (warn about -z execstack)" \
-           "-z execstack --warn-execstack" \
+           "-z execstack --warn-execstack --no-error-execstack" \
            "" \
            "" \
            {stack.s} \
@@ -285,14 +285,14 @@ if {   [istarget *-*-*linux*]
            {} \
            "pr29072-d.exe"] \
        [list "Ensure that a warning issued when creating a segment with RWX permissions" \
-           "-e 0 -Tnobits-1.t --warn-rwx-segments" \
+           "-e 0 -Tnobits-1.t --warn-rwx-segments --no-error-rwx-segments" \
            "" \
            "" \
            {nobits-1.s} \
             {{ld rwx-segments-1.l}} \
            "rwx-segments-1.exe"] \
        [list "Ensure that a warning issued when creating a TLS segment with execute permission" \
-           "-e 0 -T rwx-segments-2.t --warn-rwx-segments" \
+           "-e 0 -T rwx-segments-2.t --warn-rwx-segments --no-error-rwx-segments" \
            "" \
            "" \
            {size-2.s} \
@@ -312,7 +312,7 @@ if {   [istarget *-*-*linux*]
     if { [target_defaults_to_execstack] } {
        run_ld_link_tests [list \
           [list "PR ld/29072 (warn about absent .note.GNU-stack)" \
-           "-e 0 -z stack-size=0x123400  --warn-execstack" \
+           "-e 0 -z stack-size=0x123400  --warn-execstack --no-error-execstack" \
            "" \
            "" \
            {pr29072-b.s} \
@@ -322,7 +322,7 @@ if {   [istarget *-*-*linux*]
     } else {
        run_ld_link_tests [list \
           [list "PR ld/29072 (ignore absent .note.GNU-stack)" \
-           "-e 0 -z stack-size=0x123400" \
+           "-e 0 -z stack-size=0x123400 --no-error-execstack" \
            "" \
            "" \
            {pr29072-b.s} \