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: PR 10876: Don't always defined "end"


PR 10876 points out that gold is always defining a symbol named
"end".  This was a dumb bug in the set of standard symbols defined by
gold, fixed by this patch.  Committed to mainline and 2.20 branch.

Ian


2009-11-06  Ian Lance Taylor  <iant@google.com>

	PR 10876
	* defstd.cc (in_segment): Set only_if_ref true for "end".


Index: defstd.cc
===================================================================
RCS file: /cvs/src/src/gold/defstd.cc,v
retrieving revision 1.7
diff -p -u -r1.7 defstd.cc
--- defstd.cc	3 Nov 2009 15:41:50 -0000	1.7
+++ defstd.cc	7 Nov 2009 01:57:51 -0000
@@ -298,7 +298,7 @@ const Define_symbol_in_segment in_segmen
     elfcpp::STV_DEFAULT,	// visibility
     0,				// nonvis
     Symbol::SEGMENT_END,	// offset_from_base
-    false			// only_if_ref
+    true			// only_if_ref
   }
 };
 

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