aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-06-17 11:20:42 +0000
committerIan Lance Taylor <ian@airs.com>2011-06-17 11:20:42 +0000
commite588ea8da03e217869ea9c6533382f7bbfc5a474 (patch)
tree3d75b04ba4643b9bebe6f63726d8768ed4e4ce37 /gold/object.cc
parenta29b0dada9e9feba57c5e6ba9af96246a933efaf (diff)
downloadgdb-e588ea8da03e217869ea9c6533382f7bbfc5a474.zip
gdb-e588ea8da03e217869ea9c6533382f7bbfc5a474.tar.gz
gdb-e588ea8da03e217869ea9c6533382f7bbfc5a474.tar.bz2
* object.cc (Sized_relobj_file::do_layout): Keep warning sections
when making a shared library.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/object.cc b/gold/object.cc
index b51cbfe..778f03b 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1243,7 +1243,7 @@ Sized_relobj_file<size, big_endian>::do_layout(Symbol_table* symtab,
{
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_layout(Symbol_table* symtab,
// -fsplit-stack.
if (this->handle_split_stack_section(name))
{
- if (!parameters->options().relocatable()
- && !parameters->options().shared())
+ if (!relocatable && !parameters->options().shared())
omit[i] = true;
}