mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2003-07-29 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
|
||||||
|
|
||||||
2003-07-29 Jakub Jelinek <jakub@redhat.com>
|
2003-07-29 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
|
* config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
|
||||||
|
@ -3948,8 +3948,10 @@ tc_gen_reloc (section, fixp)
|
|||||||
rel->addend = 0;
|
rel->addend = 0;
|
||||||
|
|
||||||
rel->howto = bfd_reloc_type_lookup (stdoutput, r_type);
|
rel->howto = bfd_reloc_type_lookup (stdoutput, r_type);
|
||||||
|
#ifdef OBJ_ELF
|
||||||
if (rel->howto->type == R_SH_IND12W)
|
if (rel->howto->type == R_SH_IND12W)
|
||||||
rel->addend += fixp->fx_offset - 4;
|
rel->addend += fixp->fx_offset - 4;
|
||||||
|
#endif
|
||||||
if (rel->howto == NULL)
|
if (rel->howto == NULL)
|
||||||
{
|
{
|
||||||
as_bad_where (fixp->fx_file, fixp->fx_line,
|
as_bad_where (fixp->fx_file, fixp->fx_line,
|
||||||
|
Reference in New Issue
Block a user