This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: ld/2462: -Wl,-s always output unused bytes at the end


On Fri, Mar 17, 2006 at 07:57:34AM -0800, H. J. Lu wrote:
> On Fri, Mar 17, 2006 at 10:52:27AM -0500, Daniel Jacobowitz wrote:
> > On Fri, Mar 17, 2006 at 07:46:14AM -0800, H. J. Lu wrote:
> > > Remove elf_backend_emit_relocs check in bfd_elf_final_link does
> > > fix the problem on Linux. But it may break vxworks, which may have
> > > to set info->emitrelocations.
> > 
> > It does already.  The driver handles it.
> > 
> 
> In that case, can you check in the fix?
> 

I am checking in this patch.


H.J.
----
2006-03-17  Daniel Jacobowitz  <dan@codesourcery.com>

	PR ld/2462
	* elflink.c (bfd_elf_final_link): Remove
	bed->elf_backend_emit_relocs from emit_relocs.

--- bfd/elflink.c.reloc	2006-03-16 21:44:49.000000000 -0800
+++ bfd/elflink.c	2006-03-17 07:40:25.000000000 -0800
@@ -7831,8 +7831,7 @@ bfd_elf_final_link (bfd *abfd, struct bf
   dynobj = elf_hash_table (info)->dynobj;
 
   emit_relocs = (info->relocatable
-		 || info->emitrelocations
-		 || bed->elf_backend_emit_relocs);
+		 || info->emitrelocations);
 
   finfo.info = info;
   finfo.output_bfd = abfd;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]