]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Enable -z separate-code, -z common and -z text for more targets
authorAlan Modra <amodra@gmail.com>
Fri, 27 Sep 2024 00:23:10 +0000 (09:53 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 27 Sep 2024 00:32:14 +0000 (10:02 +0930)
Fix a mis-placed "fi".

ld/emultempl/elf.em
ld/testsuite/ld-elf/pr22393-1e.d
ld/testsuite/ld-elf/pr22393-1f.d
ld/testsuite/ld-elf/pr30508.d

index 863657e12f5d4b1630f76dfe204c30a64d1b61dc..2e865728587e37950027ec5da1bc6fe943ed3461 100644 (file)
@@ -1084,6 +1084,7 @@ fragment <<EOF
        link_info.relro = false;
 EOF
 fi
+fi
 fragment <<EOF
       else if (strcmp (optarg, "separate-code") == 0)
        link_info.separate_code = true;
@@ -1100,7 +1101,6 @@ fragment <<EOF
       else if (strcmp (optarg, "textoff") == 0)
        link_info.textrel_check = textrel_check_none;
 EOF
-fi
 
 if test -n "$PARSE_AND_LIST_ARGS_CASE_Z" ; then
 fragment <<EOF
index 51d74fa1381f2b86d81ebf28ca0f00f9001a15bc..55f7e9a6e4ece3ef067a9d4e491b3a8fdc630d3d 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -z separate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
-#xfail: h8300-*-* rx-*-linux*
+#xfail: rx-*-linux*
 
 #failif
 #...
index 2a44955d0f14cc30fb69b67436168e20d6fe47ce..bc61b639658e61449e79cae3d9a489a94a51a177 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -z separate-code
 #readelf: -l --wide
 #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
-#xfail: h8300-*-* rx-*-linux*
+#xfail: rx-*-linux*
 
 #failif
 #...
index 325ff40f56299b478a1acc3b955fad4bcd469317..1692780903025f174169da0b7f10a98a18d8ce45 100644 (file)
@@ -2,7 +2,7 @@
 #objcopy_linked_file: -R .foo
 #readelf: -lW
 #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
-#xfail: h8300-*-* mips*-*-* rx-*-linux*
+#xfail: mips*-*-* rx-*-linux*
 
 #...
  Section to Segment mapping: