Problem with objcopy phdrs and patch

Bob Wilson bwilson@tensilica.com
Fri May 14 16:31:00 GMT 2004


Alan Modra wrote:
> No, the patch is *not* OK.  David hasn't compiled bfd with
> --enable-targets=all.  Changing struct bfd_target usually entails quite
> a lot of mechanical work..  I'll approve the patch once that has been
> done.

Oops.  I've never made a change like this before and I'm afraid it shows.... 
Since you described the work as mechanical, I went ahead and added the missing 
pieces to David's patch.  It now builds with --enable-targets=all.  OK?

--Bob

bfd ChangeLog:

2004-05-14  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.
	* 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.
	* elf-xxtarget.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-14  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/20040514/316dfb79/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/20040514/316dfb79/attachment-0001.ksh>


More information about the Binutils mailing list