This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Objcopy fix for relocation sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com, James Troup <james at nocrew dot org>
- Date: Thu, 5 Aug 2004 18:57:04 +0930
- Subject: Re: Objcopy fix for relocation sections
- References: <20031222210543.GA3418@nevyn.them.org> <20031223032137.GD1618@bubble.sa.bigpond.net.au> <20040727210426.GA11595@nevyn.them.org> <20040803225601.GA22637@nevyn.them.org>
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