Objcopy fix for relocation sections

Alan Modra amodra@bigpond.net.au
Thu Aug 5 09:27:00 GMT 2004


On Tue, Aug 03, 2004 at 06:56:01PM -0400, Daniel Jacobowitz wrote:
> 	* elf.c (assign_file_positions_except_relocs): Revert unintended
> 	change from 2004-04-08.

Oops, please fix.

> 	(_bfd_elf_set_section_contents): Call
> 	_bfd_elf_assign_file_positions_for_relocs when starting output
> 	for executables and shared libraries.

Doesn't this break mips?  For example, I see an assignment to
rel_hdr->sh_size in mips_elf64_write_rel.  That size should determine
section placement, but you're doing the placement before
mips_elf64_write_rel is called.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list