Enable -z separate-code, -z common and -z text for more targets

Fix a mis-placed "fi".
This commit is contained in:
Alan Modra
2024-09-27 09:53:10 +09:30
parent d9589324ff
commit 428f3561bc
4 changed files with 4 additions and 4 deletions

View 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

View 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
#...

View 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
#...

View 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: