Problem with objcopy phdrs and patch
Bob Wilson
bwilson@tensilica.com
Mon May 17 16:44:00 GMT 2004
Alan Modra wrote:
> Hmm, I should have mentioned that you need --enable-64-bit-bfd also if
> your host and target are both 32 bit; The list of files changed looked
> suspiciously small. I see you caught som.c, which I missed in my last
> change in this area. Good! :) However, there's no mention of
> coff-rs6000.c and coff64-rs6000.c in the patch. I think you'll need a
> change there too.
>
> Otherwise OK. Further mechanical change to rs6000 files pre-approved,
> plus any other missing changes if --enable-64-bit-bfd shows some are
> needed. Thanks!
You were right about the coff*-rs6000 files. I fixed them and there were no
other problems exposed by the --enable-64-bit-bfd build. Here are the revised
patches that I've committed.
--Bob
bfd ChangeLog:
2004-05-17 David Heine <dlheine@tensilica.com>
* aout-target.h (MY_bfd_copy_private_header_data): Define.
* aout-tic30.c (MY_bfd_copy_private_header_data): Define.
* bfd.c (bfd_copy_private_header_data): Define.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
interface.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
* coffcode.h (coff_bfd_copy_private_header_data): Define.
* elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
* elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
segments by calling copy_private_bfd_data.
(_bfd_elf_copy_private_header_data): Define.
* elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
* libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
* libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
* mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
* mmo.c (mmo_bfd_copy_private_header_data): Define.
* ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
* som.c (som_bfd_copy_private_header_data): Define.
* targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
* vms.c (vms_bfd_copy_private_header_data): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
binutils ChangeLog:
2004-05-17 David Heine <dlheine@tensilica.com>
* objcopy.c (setup_bfd_headers): New function.
(copy_object): Call setup_bfd_headers.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bfd-cp-priv-hdr.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/40ab6415/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-cp-priv-hdr.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20040517/40ab6415/attachment-0001.ksh>
More information about the Binutils
mailing list