Apply rev 1.225 from binutils mainline:
date: 2003/07/09 01:27:30; author: cgd; state: Exp; lines: +3 -2 2003-07-08 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (mips_validate_fix): Do not warn about branch target being a global symbol if not compiling SVR4 PIC code. Fixes warnings compiling MIPS kernels. Problem noticed by Izumi Tsutsui on the port-pmax list.
This commit is contained in:
parent
1534ca51d1
commit
72964fcdbe
5
gnu/dist/binutils/gas/config/tc-mips.c
vendored
5
gnu/dist/binutils/gas/config/tc-mips.c
vendored
@ -11570,8 +11570,9 @@ mips_validate_fix (fixP, seg)
|
||||
{
|
||||
symbolS *sym = fixP->fx_addsy;
|
||||
|
||||
as_warn_where (fixP->fx_file, fixP->fx_line,
|
||||
_("Pretending global symbol used as branch target is local."));
|
||||
if (mips_pic == SVR4_PIC)
|
||||
as_warn_where (fixP->fx_file, fixP->fx_line,
|
||||
_("Pretending global symbol used as branch target is local."));
|
||||
|
||||
fixP->fx_addsy = symbol_create (S_GET_NAME (sym),
|
||||
S_GET_SEGMENT (sym),
|
||||
|
Loading…
Reference in New Issue
Block a user