This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: PR 10876: Don't always defined "end"
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Fri, 06 Nov 2009 18:03:40 -0800
- Subject: 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
}
};