mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Fri Feb 21 14:34:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.c (md_pcrel_from_section): Return 0 if relocation is in different section. Fixes PR11574.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Fri Feb 21 14:34:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
|
||||
|
||||
* config/tc-d10v.c (md_pcrel_from_section): Return 0 if
|
||||
relocation is in different section. Fixes PR11574.
|
||||
|
||||
Fri Feb 21 10:08:25 1997 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* tc-mips.c (mips_ip): If configured for an embedded ELF system,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* tc-d10v.c -- Assembler code for the Mitsubishi D10V
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
@ -1253,7 +1253,8 @@ md_pcrel_from_section (fixp, sec)
|
||||
fixS *fixp;
|
||||
segT sec;
|
||||
{
|
||||
if (fixp->fx_addsy != (symbolS *)NULL && !S_IS_DEFINED (fixp->fx_addsy))
|
||||
if (fixp->fx_addsy != (symbolS *)NULL && (!S_IS_DEFINED (fixp->fx_addsy) ||
|
||||
(S_GET_SEGMENT (fixp->fx_addsy) != sec)))
|
||||
return 0;
|
||||
return fixp->fx_frag->fr_address + fixp->fx_where;
|
||||
}
|
||||
|
Reference in New Issue
Block a user