This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linking binary 'hunks' into images


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]