mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
(md_apply_fix3): Handle the case where a .byte directive generates a
pc-relative relocation.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-12-20 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-ppc.c (md_apply_fix3): Handle the case where a
|
||||||
|
.byte directive generates a pc-relative relocation.
|
||||||
|
|
||||||
2003-12-19 Nick Clifton <nickc@redhat.com>
|
2003-12-19 Nick Clifton <nickc@redhat.com>
|
||||||
Andreas Schwab <schwab@suse.de>
|
Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
@ -5899,10 +5899,19 @@ md_apply_fix3 (fixP, valP, seg)
|
|||||||
|
|
||||||
case BFD_RELOC_8:
|
case BFD_RELOC_8:
|
||||||
if (fixP->fx_pcrel)
|
if (fixP->fx_pcrel)
|
||||||
abort ();
|
{
|
||||||
|
/* This can occur if there is a bug in the input assembler, eg:
|
||||||
md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
|
".byte <undefined_symbol> - ." */
|
||||||
value, 1);
|
if (fixP->fx_addsy)
|
||||||
|
as_bad (_("Unable to handle reference to symbol %s"),
|
||||||
|
S_GET_NAME (fixP->fx_addsy));
|
||||||
|
else
|
||||||
|
as_bad (_("Unable to resolve expression"));
|
||||||
|
fixP->fx_done = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
|
||||||
|
value, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BFD_RELOC_24_PLT_PCREL:
|
case BFD_RELOC_24_PLT_PCREL:
|
||||||
|
Reference in New Issue
Block a user