Fix: GNU-ld: ARM: Issues when trying to set target output architecture

PR 28910
  * lexsup.c (ld_options): Require that the --architecture option is given exactly two dashes, so that it does not become confused with the -a option.
This commit is contained in:
Nick Clifton
2023-10-16 15:48:26 +01:00
parent ed5504c7b6
commit a79e9a07a0
2 changed files with 8 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ static const struct ld_option ld_options[] =
'a', N_("KEYWORD"), N_("Shared library control for HP/UX compatibility"),
ONE_DASH },
{ {"architecture", required_argument, NULL, 'A'},
'A', N_("ARCH"), N_("Set architecture") , TWO_DASHES },
'A', N_("ARCH"), N_("Set architecture") , EXACTLY_TWO_DASHES },
{ {"format", required_argument, NULL, 'b'},
'b', N_("TARGET"), N_("Specify target for following input files"),
TWO_DASHES },