This is the mail archive of the binutils@sources.redhat.com 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]

PATCH: 2.15 ELF linker warning section leaking


I got a bug report that 2.15 linker generates bad output under certain
conditions where warning sections leaked into .text output. This patch
seems to fix it. It seems to safe to me. Any comments?


H.J.
---
2004-10-15  H.J. Lu  <hongjiu.lu@intel.com>

	* elflink.c (elf_link_add_object_symbols): Also clear
	_cooked_size for warning sections.

--- bfd/elflink.c.warning	2004-10-14 15:09:58.000000000 -0700
+++ bfd/elflink.c	2004-10-15 16:35:00.835418219 -0700
@@ -3014,6 +3014,7 @@ elf_link_add_object_symbols (bfd *abfd, 
 		  /* Clobber the section size so that the warning does
 		     not get copied into the output file.  */
 		  s->_raw_size = 0;
+		  s->_cooked_size = 0;
 		}
 	    }
 	}


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