Fix: GNU-ld: ARM: Issues when trying to set target output architecture
authorNick Clifton <nickc@redhat.com>
Mon, 16 Oct 2023 14:48:26 +0000 (15:48 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 16 Oct 2023 14:48:26 +0000 (15:48 +0100)
  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.

ld/ChangeLog
ld/lexsup.c

index 05b88ee0b942b2d7a300fbf6c9c28ab898d21696..78cfb267261f76166395a8f4d7b192a4f6bbd61b 100644 (file)
@@ -1,3 +1,10 @@
+2023-10-16  Nick Clifton  <nickc@redhat.com>
+
+       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.
+
 2023-10-09  Nick Clifton  <nickc@redhat.com>
 
        PR 30951
index fe8722313fedf6d72846fc45418831e5c77efab6..49dfc13382a0c1be0c944fd46a75914a88f59c45 100644 (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 },