This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Report value of unsupported binding
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Mon, 11 Oct 2010 13:05:08 -0700
- Subject: gold patch committed: Report value of unsupported binding
When gold reports an error about an unsupported symbol binding, it
neglects to report the value. This has led to a series of guesses about
the recently added STB_GNU_UNIQUE binding. This patch changes the error
message so that the value of the binding is supported so that we don't
need to make those guesses next time around. Committed to mainline.
Ian
2010-10-11 Ian Lance Taylor <iant@google.com>
* resolve.cc (symbol_to_bits): Report the value of the unsupported
binding.
Index: resolve.cc
===================================================================
RCS file: /cvs/src/src/gold/resolve.cc,v
retrieving revision 1.57
diff -p -u -r1.57 resolve.cc
--- resolve.cc 28 Aug 2010 08:05:04 -0000 1.57
+++ resolve.cc 11 Oct 2010 20:01:34 -0000
@@ -195,7 +195,7 @@ symbol_to_bits(elfcpp::STB binding, bool
default:
// Any target which wants to handle STB_LOOS, etc., needs to
// define a resolve method.
- gold_error(_("unsupported symbol binding"));
+ gold_error(_("unsupported symbol binding %d"), static_cast<int>(binding));
bits = global_flag;
}