diff options
author | Nick Clifton <nickc@redhat.com> | 2023-10-16 15:48:26 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-10-16 15:48:26 +0100 |
commit | a79e9a07a0d350031cd491031a756fbaa6a01df0 (patch) | |
tree | 01caf38cbd716de6f577b422ded8ac1fb004bc53 | |
parent | ed5504c7b6f53ee3343ddd44ad2c8d28b00f7641 (diff) | |
download | binutils-a79e9a07a0d350031cd491031a756fbaa6a01df0.zip binutils-a79e9a07a0d350031cd491031a756fbaa6a01df0.tar.gz binutils-a79e9a07a0d350031cd491031a756fbaa6a01df0.tar.bz2 |
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.
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/lexsup.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 05b88ee..78cfb26 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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 diff --git a/ld/lexsup.c b/ld/lexsup.c index fe87223..49dfc13 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -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 }, |