This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Fix call to wrong error function
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Tue, 14 Aug 2012 21:03:55 -0700
- Subject: gold patch committed: Fix call to wrong error function
In private e-mail Wang Jiong pointed out that gold calls the wrong error
function in Scan::global in x86_64.cc. Fixed with this patch.
Committed to mainline.
Ian
2012-08-14 Ian Lance Taylor <iant@google.com>
* x86_64.cc (Target_x86_64::Scan::global): Fix erroneous call to
unsupported_relocal_local to call unsupported_reloc_global.
Index: x86_64.cc
===================================================================
RCS file: /cvs/src/src/gold/x86_64.cc,v
retrieving revision 1.153
diff -u -r1.153 x86_64.cc
--- x86_64.cc 11 May 2012 11:10:19 -0000 1.153
+++ x86_64.cc 15 Aug 2012 04:03:24 -0000
@@ -3006,7 +3006,7 @@
case elfcpp::R_X86_64_TPOFF32: // Local-exec
layout->set_has_static_tls();
if (parameters->options().shared())
- unsupported_reloc_local(object, r_type);
+ unsupported_reloc_global(object, r_type, gsym);
break;
default: