This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gold patch committed: Keep warning sections with --shared


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.


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;
 	    }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]