* object.cc (Sized_relobj_file::do_layout): Keep warning sections
when making a shared library.
This commit is contained in:
parent
a29b0dada9
commit
e588ea8da0
|
@ -1,8 +1,13 @@
|
||||||
2011-06-17 Ian Lance Taylor <iant@google.com>
|
2011-06-17 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* x86_64.cc (check_non_pic): Add gsym parameter. Change all
|
* object.cc (Sized_relobj_file::do_layout): Keep warning sections
|
||||||
callers. Don't issue warning about PC32 against locally defined
|
when making a shared library.
|
||||||
symbol.
|
|
||||||
|
2011-06-17 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* x86_64.cc (Target_x86_64::Scan::check_non_pic): Add gsym
|
||||||
|
parameter. Change all callers. Don't issue warning about PC32
|
||||||
|
against locally defined symbol.
|
||||||
|
|
||||||
2011-06-16 Ian Lance Taylor <iant@google.com>
|
2011-06-16 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
|
|
@ -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 (this->handle_gnu_warning_section(name, i, symtab))
|
||||||
{
|
{
|
||||||
if (!relocatable)
|
if (!relocatable && !parameters->options().shared())
|
||||||
omit[i] = true;
|
omit[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1262,8 +1262,7 @@ Sized_relobj_file<size, big_endian>::do_layout(Symbol_table* symtab,
|
||||||
// -fsplit-stack.
|
// -fsplit-stack.
|
||||||
if (this->handle_split_stack_section(name))
|
if (this->handle_split_stack_section(name))
|
||||||
{
|
{
|
||||||
if (!parameters->options().relocatable()
|
if (!relocatable && !parameters->options().shared())
|
||||||
&& !parameters->options().shared())
|
|
||||||
omit[i] = true;
|
omit[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue