This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: odd build failure in ld
- From: Alan Modra <amodra at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Binutils Development <binutils at sourceware dot org>
- Date: Tue, 4 Mar 2014 10:27:01 +1030
- Subject: Re: odd build failure in ld
- Authentication-results: sourceware.org; auth=none
- References: <87r46jaxjy dot fsf at fleche dot redhat dot com>
On Mon, Mar 03, 2014 at 12:31:45PM -0700, Tom Tromey wrote:
> I am building on x86-64 Fedora 18. I use --enable-targets=all.
>
> Whenever ld/default-manifest.o needs to be rebuilt, I get:
>
> barimba. rm default-manifest.o
> barimba. make default-manifest.o
> ../binutils/windres -o default-manifest.o ../../binutils-gdb/ld/emultempl/default-manifest.rc
> ../binutils/windres: can't get BFD_RELOC_RVA relocation type: No error
> make: *** [default-manifest.o] Error 1
Looks like windres is opening the output file using the default target.
(gdb) p *cwi->wrbfd->abfd->xvec
$5 = {name = 0x7d3ac3 "elf64-x86-64", flavour = bfd_target_elf_flavour,
[snip]
Presumably default-manifest.o ought to be a COFF file of some sort, so
windres shouldn't use the default target. Adding "-F pe-x86-64" to the
windres invocation works around the problem, but is probably not the
correct solution.
--
Alan Modra
Australia Development Lab, IBM