This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Binutuls is broken now.
- To: hjl at lucon dot org
- Subject: Re: Binutuls is broken now.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Mon, 18 Jun 2001 19:19:45 +0200
- CC: hans-peter dot nilsson at axis dot com, binutils at sourceware dot cygnus dot com, nickc at cambridge dot redhat dot com
> Date: Mon, 18 Jun 2001 10:10:17 -0700
> From: "H . J . Lu" <hjl@lucon.org>
> This patch
>
> http://sources.redhat.com/ml/binutils/2001-06/msg00342.html
>
> breaks the Linux kernel build. I got
>
> # ld -m elf_i386 -r -o piggy.o -b binary tmppiggy.gz -b elf32-i386 -T tmppiggy.lnk
> ld: Relocatable linking from format binary (tmppiggy.gz) to format elf32-i386 (piggy.o) is not supported
>
> I will try to find a fix.
Running objcopy on tmppiggy.gz to make a elf32-i386 piggy.o
before linking it -r seems TRT.
Otherwise (but not TRT IMHO), it seems it would be sufficient to
add bfd_target_binary_flavour to object format flavours (for
some reason it's not listed as a flavour) and check for it in
ldlang.c as an exception to cannot-link--r.
brgds, H-P