]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s390: Fix linker s390 emulation option parsing
authorJens Remus <jremus@linux.ibm.com>
Mon, 27 Jan 2025 15:47:10 +0000 (16:47 +0100)
committerJens Remus <jremus@linux.ibm.com>
Mon, 27 Jan 2025 15:47:10 +0000 (16:47 +0100)
Append s390-specific emulation options to the shell variables instead of
replacing their contents.

ld/
* emultempl/s390.em (PARSE_AND_LIST_LONGOPTS,
PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Append to
emulation options instead of replacing them.

Fixes: b4cbbe8f7294 ("S/390: Add support for pgste marker")
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
ld/emultempl/s390.em

index 3a2e49d80a7ef22b1e3a2197602f688b4d221008..8548768cc5f173a2e1cae4b21e3a27051b55be0d 100644 (file)
@@ -42,16 +42,16 @@ EOF
 # Define some shell vars to insert bits of code into the standard elf
 # parse_args and list_options functions.
 #
-PARSE_AND_LIST_LONGOPTS='
+PARSE_AND_LIST_LONGOPTS=${PARSE_AND_LIST_LONGOPTS}'
   { "s390-pgste", no_argument, NULL, OPTION_PGSTE},
 '
 
-PARSE_AND_LIST_OPTIONS='
+PARSE_AND_LIST_OPTIONS=${PARSE_AND_LIST_OPTIONS}'
   fprintf (file, _("  --s390-pgste                Tell the kernel to "
                   "allocate 4k page tables\n"));
 '
 
-PARSE_AND_LIST_ARGS_CASES='
+PARSE_AND_LIST_ARGS_CASES=${PARSE_AND_LIST_ARGS_CASES}'
     case OPTION_PGSTE:
       params.pgste = 1;
       break;