* object.cc (Sized_relobj_file::do_layout): Keep warning sections
authorIan Lance Taylor <ian@airs.com>
Fri, 17 Jun 2011 11:20:42 +0000 (11:20 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 17 Jun 2011 11:20:42 +0000 (11:20 +0000)
when making a shared library.

gold/ChangeLog
gold/object.cc

index 7bf841ea4b93436f461afdfe29abcdf9b7fbaf97..9ade99735a2afe423413951143cc139ccbecae55 100644 (file)
@@ -1,8 +1,13 @@
 2011-06-17  Ian Lance Taylor  <iant@google.com>
 
-       * x86_64.cc (check_non_pic): Add gsym parameter.  Change all
-       callers.  Don't issue warning about PC32 against locally defined
-       symbol.
+       * object.cc (Sized_relobj_file::do_layout): Keep warning sections
+       when making a shared library.
+
+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>
 
index b51cbfee5d36d827f3bca69cd95b49f4f5d3aca0..778f03be8e256491e726ef9ace63beb1575a3572 100644 (file)
@@ -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;
            }
 
This page took 0.032324 seconds and 4 git commands to generate.