This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: linking binary 'hunks' into images
- To: jtc at redback dot com
- Subject: Re: linking binary 'hunks' into images
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 1 Oct 1999 16:57:14 -0400
- CC: binutils at sourceware dot cygnus dot com
- References: <5m7ll6yimr.fsf@jtc.redbacknetworks.com>
From: jtc@redback.com (J.T. Conklin)
Date: 01 Oct 1999 12:40:28 -0700
I noticed that elf32-mcore.c, elf32-mips.c, and elf32-ppc.c have
pretty much the same conditional in their *_elf_merge_private_data()
functions, but the one in elf32-arm.h the conditional is slightly
different:
if ( ibfd->xvec->byteorder != obfd->xvec->byteorder
&& obfd->xvec->byteorder != BFD_ENDIAN_UNKNOWN
&& ibfd->xvec->byteorder != BFD_ENDIAN_UNKNOWN)
{
...
return false;
}
Changing ppc_elf_merge_private_bfd_data() to be like elf32_arm_...
allows the firmware to be linked successfully.
Questions:
- Is this the correct fix for the problem?
Yes.
- If so, should this also be applied to elf32-mips.c and elf32-mcore.c?
Yes.
Ian