public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [binutils-gdb] Fix: GNU-ld: ARM: Issues when trying to set target output architecture
       [not found] <20231016144900.34CE23858D32@sourceware.org>
@ 2023-11-11 15:20 ` Jan-Benedict Glaw
  0 siblings, 0 replies; only message in thread
From: Jan-Benedict Glaw @ 2023-11-11 15:20 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

[-- Attachment #1: Type: text/plain, Size: 2717 bytes --]

Hi!

On Mon, 2023-10-16 14:49:00 +0000, Nick Clifton via Binutils-cvs <binutils-cvs@sourceware.org> wrote:
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a79e9a07a0d350031cd491031a756fbaa6a01df0
> diff --git a/ld/lexsup.c b/ld/lexsup.c
> index fe8722313fe..49dfc13382a 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 },

I've noticed side effects when (cross-)building the Linux kernel for
a number of parisc and sh configurations, see e.g.
http://toolchain.lug-owl.de/laminar/jobs/linux-sh-microdev_defconfig/37 or 
http://toolchain.lug-owl.de/laminar/jobs/linux-parisc-generic-32bit_defconfig/36 :


+ log_execute 'mk all' ionice --class Idle make V=1 CROSS32_COMPILE=hppa-linux- ARCH=parisc CROSS_COMPILE=hppa-linux- INSTALL_MOD_PATH=/var/lib/laminar/run/linux-parisc-generic-32bit_defconfig/36/linux-parisc-generic-32bit_defconfig INSTALL_DTBS_PATH=/var/lib/laminar/run/linux-parisc-generic-32bit_defconfig/36/linux-parisc-generic-32bit_defconfig all
[...]
[mk all 2023-11-10 19:49:33]   hppa-linux-objcopy  -R .comment -R .note -S vmlinux arch/parisc/boot/compressed/vmlinux.bin
[mk all 2023-11-10 19:49:33] # GZIP    arch/parisc/boot/compressed/vmlinux.bin.gz
[mk all 2023-11-10 19:49:33]   cat arch/parisc/boot/compressed/vmlinux.bin | gzip -n -f -9 > arch/parisc/boot/compressed/vmlinux.bin.gz
[mk all 2023-11-10 19:49:34] # LD      arch/parisc/boot/compressed/piggy.o
[mk all 2023-11-10 19:49:34]   hppa-linux-ld -z noexecstack --no-warn-rwx-segments  -r --format binary --oformat elf32-hppa-linux -T arch/parisc/boot/compressed/vmlinux.scr arch/parisc/boot/compressed/vmlinux.bin.gz -o arch/parisc/boot/compressed/piggy.o
[mk all 2023-11-10 19:49:34] hppa-linux-ld: Error: unable to disambiguate: --format (did you mean ---format ?)
[mk all 2023-11-10 19:49:34] make[3]: *** [arch/parisc/boot/compressed/Makefile:75: arch/parisc/boot/compressed/piggy.o] Error 1
[mk all 2023-11-10 19:49:34] make[2]: *** [arch/parisc/boot/Makefile:17: arch/parisc/boot/compressed/vmlinux] Error 2
[mk all 2023-11-10 19:49:34] make[1]: *** [arch/parisc/Makefile:161: bzImage] Error 2
[mk all 2023-11-10 19:49:34] make: *** [Makefile:234: __sub-make] Error 2


MfG, JBG

-- 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-11 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20231016144900.34CE23858D32@sourceware.org>
2023-11-11 15:20 ` [binutils-gdb] Fix: GNU-ld: ARM: Issues when trying to set target output architecture Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).