This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/2462: -Wl,-s always output unused bytes at the end
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Cc: "H. J. Lu" <hjl at lucon dot org>, Richard Sandiford <richard at codesourcery dot com>
- Date: Fri, 17 Mar 2006 14:18:24 +0000
- Subject: Re: PATCH: ld/2462: -Wl,-s always output unused bytes at the end
- References: <20060317140251.GA18212@lucon.org>
On Friday 17 March 2006 14:02, H. J. Lu wrote:
> This is a regression caused by
>
> http://sourceware.org/ml/binutils/2005-05/msg00170.html
>
> If Paul has no problems with vxworks, I'd like to check it as an
> obvious fix.
> 2006-03-17 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ????????PR ld/2462
> ????????* elflink.c (elf_emit_relocs): New.
> ????????(elf_link_input_bfd): Emit relocations only when needed. Call
> ????????elf_emit_relocs instead of bed->elf_backend_emit_relocs.
>
> ????????* elfxx-target.h (elf_backend_emit_relocs): Default to NULL.
I don't think this patch is even close to being "obvious".
Richard Sandiford has looked at the vxworks bits more recently than me, maybe
he can comment.
Paul