This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: 2.15 ELF linker warning section leaking
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 15 Oct 2004 16:43:28 -0700
- Subject: 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;
}
}
}