This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[committed] Fix lingering -mno-shared problem
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 09 Mar 2005 11:59:44 +0000
- Subject: [committed] Fix lingering -mno-shared problem
The recent -mno-shared patch missed a use of _gp in s_cpsetup.
This was causing the elf-rel23 test to fail on mips64-linux-gnu.
Tested on mips64{,el}-linux-gnu, installed to branch and mainline
as obvious.
Richard
* config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
for -mno-shared optimization.
Index: config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.302
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.302 tc-mips.c
--- config/tc-mips.c 9 Mar 2005 09:39:30 -0000 1.302
+++ config/tc-mips.c 9 Mar 2005 11:49:33 -0000
@@ -11824,7 +11824,7 @@ s_cpsetup (int ignore ATTRIBUTE_UNUSED)
expressionS ex;
ex.X_op = O_symbol;
- ex.X_add_symbol = symbol_find_or_make ("_gp");
+ ex.X_add_symbol = symbol_find_or_make ("__gnu_local_gp");
ex.X_op_symbol = NULL;
ex.X_add_number = 0;