mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
* config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2003-04-09 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
|
||||||
|
|
||||||
2003-04-08 Nick Clifton <nickc@redhat.com>
|
2003-04-08 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* as.c (perform_an_assembly_pass): If using cgen, call
|
* as.c (perform_an_assembly_pass): If using cgen, call
|
||||||
|
@ -5522,15 +5522,26 @@ md_apply_fix3 (fixP, valP, seg)
|
|||||||
#if defined (OBJ_XCOFF) || defined (OBJ_ELF)
|
#if defined (OBJ_XCOFF) || defined (OBJ_ELF)
|
||||||
else if ((operand->flags & PPC_OPERAND_PARENS) != 0
|
else if ((operand->flags & PPC_OPERAND_PARENS) != 0
|
||||||
&& operand->bits == 16
|
&& operand->bits == 16
|
||||||
&& operand->shift == 0
|
&& operand->shift == 0)
|
||||||
&& ppc_is_toc_sym (fixP->fx_addsy))
|
|
||||||
{
|
{
|
||||||
fixP->fx_r_type = BFD_RELOC_PPC_TOC16;
|
if (ppc_is_toc_sym (fixP->fx_addsy))
|
||||||
|
{
|
||||||
|
fixP->fx_r_type = BFD_RELOC_PPC_TOC16;
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
if (ppc_obj64
|
if (ppc_obj64
|
||||||
&& (operand->flags & PPC_OPERAND_DS) != 0)
|
&& (operand->flags & PPC_OPERAND_DS) != 0)
|
||||||
fixP->fx_r_type = BFD_RELOC_PPC64_TOC16_DS;
|
fixP->fx_r_type = BFD_RELOC_PPC64_TOC16_DS;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fixP->fx_r_type = BFD_RELOC_16;
|
||||||
|
#ifdef OBJ_ELF
|
||||||
|
if (ppc_obj64
|
||||||
|
&& (operand->flags & PPC_OPERAND_DS) != 0)
|
||||||
|
fixP->fx_r_type = BFD_RELOC_PPC64_ADDR16_DS;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
fixP->fx_size = 2;
|
fixP->fx_size = 2;
|
||||||
if (target_big_endian)
|
if (target_big_endian)
|
||||||
fixP->fx_where += 2;
|
fixP->fx_where += 2;
|
||||||
|
Reference in New Issue
Block a user