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] another discarded DWARF issue


Alan Modra wrote:
I think that this is the right way to go.  You might like to update
the rawsize comment while you're at it.

This is what I committed. I'll see what I can do about the rawsize comment.


2007-10-16 Bob Wilson <bob.wilson@acm.org>

	* elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
	values if they are set.

Index: elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.282
diff -u -p -r1.282 elflink.c
--- elflink.c	12 Oct 2007 16:25:21 -0000	1.282
+++ elflink.c	16 Oct 2007 15:47:03 -0000
@@ -8786,7 +8786,9 @@ _bfd_elf_check_kept_section (asection *s
     {
       if ((kept->flags & SEC_GROUP) != 0)
 	kept = match_group_member (sec, kept, info);
-      if (kept != NULL && sec->size != kept->size)
+      if (kept != NULL
+	  && ((sec->rawsize != 0 ? sec->rawsize : sec->size)
+	      != (kept->rawsize != 0 ? kept->rawsize : kept->size)))
 	kept = NULL;
       sec->kept_section = kept;
     }

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