* gold patch committed: Keep warning sections with --shared
@ 2011-06-17 11:23 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2011-06-17 11:23 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
This patch to gold fixes it to keep .gnu.warning.SYM sections when
linking with --shared. Committed to mainline and to 2.21 branch.
Ian
2011-06-17 Ian Lance Taylor <iant@google.com>
* object.cc (Sized_relobj_file::do_layout): Keep warning sections
when making a shared library.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 876 bytes --]
Index: object.cc
===================================================================
RCS file: /cvs/src/src/gold/object.cc,v
retrieving revision 1.142
diff -u -p -r1.142 object.cc
--- object.cc 9 Jun 2011 18:18:44 -0000 1.142
+++ object.cc 17 Jun 2011 11:19:18 -0000
@@ -1243,7 +1243,7 @@ Sized_relobj_file<size, big_endian>::do_
{
if (this->handle_gnu_warning_section(name, i, symtab))
{
- if (!relocatable)
+ if (!relocatable && !parameters->options().shared())
omit[i] = true;
}
@@ -1262,8 +1262,7 @@ Sized_relobj_file<size, big_endian>::do_
// -fsplit-stack.
if (this->handle_split_stack_section(name))
{
- if (!parameters->options().relocatable()
- && !parameters->options().shared())
+ if (!relocatable && !parameters->options().shared())
omit[i] = true;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-17 11:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 11:23 gold patch committed: Keep warning sections with --shared Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).