mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-12 09:39:30 +08:00
* config/tc-sh.c (sh_fix_adjustable): Adjust EXTERN and
WEAK handling.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Sat Oct 24 15:12:19 1998 Catherine Moore <clm@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-sh.c (sh_fix_adjustable): Adjust EXTERN and
|
||||||
|
WEAK handling.
|
||||||
|
|
||||||
Thu Oct 22 12:41:33 1998 Catherine Moore <clm@cygnus.com>
|
Thu Oct 22 12:41:33 1998 Catherine Moore <clm@cygnus.com>
|
||||||
|
|
||||||
* cgen.c (gas_cgen_md_apply_fix3): Revert last change.
|
* cgen.c (gas_cgen_md_apply_fix3): Revert last change.
|
||||||
|
@ -1858,6 +1858,8 @@ sh_force_relocation (fix)
|
|||||||
|| fix->fx_r_type == BFD_RELOC_SH_DATA
|
|| fix->fx_r_type == BFD_RELOC_SH_DATA
|
||||||
|| fix->fx_r_type == BFD_RELOC_SH_LABEL);
|
|| fix->fx_r_type == BFD_RELOC_SH_LABEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef OBJ_ELF
|
||||||
boolean
|
boolean
|
||||||
sh_fix_adjustable (fixP)
|
sh_fix_adjustable (fixP)
|
||||||
fixS *fixP;
|
fixS *fixP;
|
||||||
@ -1866,12 +1868,6 @@ sh_fix_adjustable (fixP)
|
|||||||
if (fixP->fx_addsy == NULL)
|
if (fixP->fx_addsy == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Prevent all adjustments to global symbols. */
|
|
||||||
if (S_IS_EXTERN (fixP->fx_addsy))
|
|
||||||
return 0;
|
|
||||||
if (S_IS_WEAK (fixP->fx_addsy))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* We need the symbol name for the VTABLE entries */
|
/* We need the symbol name for the VTABLE entries */
|
||||||
if (fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|
if (fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|
||||||
|| fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
|| fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
||||||
@ -1879,6 +1875,7 @@ sh_fix_adjustable (fixP)
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Apply a fixup to the object file. */
|
/* Apply a fixup to the object file. */
|
||||||
|
|
||||||
@ -2059,7 +2056,7 @@ md_apply_fix (fixP, val)
|
|||||||
case BFD_RELOC_VTABLE_INHERIT:
|
case BFD_RELOC_VTABLE_INHERIT:
|
||||||
case BFD_RELOC_VTABLE_ENTRY:
|
case BFD_RELOC_VTABLE_ENTRY:
|
||||||
fixP->fx_done = 0;
|
fixP->fx_done = 0;
|
||||||
return 1;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
|
Reference in New Issue
Block a user