mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
Fix generation of RVA relocs
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
1999-11-18 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-mcore.h (TC_FORCE_RELOCATION): Define for Mcore-pe
|
||||||
|
target.
|
||||||
|
|
||||||
|
* config/tc-mcore.c (tc_gen_reloc): Support generation of RVA
|
||||||
|
relocs.
|
||||||
|
(mcore_force_relocation): Force relocations to be generated for
|
||||||
|
RVA relocs.
|
||||||
|
|
||||||
1999-11-16 Alan Modra <alan@spri.levels.unisa.edu.au>
|
1999-11-16 Alan Modra <alan@spri.levels.unisa.edu.au>
|
||||||
|
|
||||||
* config/tc-i386.c (i386_immediate): Disallow O_big immediates.
|
* config/tc-i386.c (i386_immediate): Disallow O_big immediates.
|
||||||
|
@ -2193,6 +2193,7 @@ tc_gen_reloc (section, fixp)
|
|||||||
case BFD_RELOC_MCORE_PCREL_IMM8BY4:
|
case BFD_RELOC_MCORE_PCREL_IMM8BY4:
|
||||||
case BFD_RELOC_MCORE_PCREL_IMM11BY2:
|
case BFD_RELOC_MCORE_PCREL_IMM11BY2:
|
||||||
case BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2:
|
case BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2:
|
||||||
|
case BFD_RELOC_RVA:
|
||||||
code = fixp->fx_r_type;
|
code = fixp->fx_r_type;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -2246,7 +2247,8 @@ mcore_force_relocation (fix)
|
|||||||
fixS * fix;
|
fixS * fix;
|
||||||
{
|
{
|
||||||
if ( fix->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|
if ( fix->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|
||||||
|| fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
|| fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY
|
||||||
|
|| fixP->fx_r_type == BFD_RELOC_RVA)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -74,6 +74,10 @@ struct mcore_tc_sy
|
|||||||
|
|
||||||
#define TC_SYMFIELD_TYPE struct mcore_tc_sy
|
#define TC_SYMFIELD_TYPE struct mcore_tc_sy
|
||||||
|
|
||||||
|
# if defined TE_PE
|
||||||
|
# define TC_FORCE_RELOCATION(x) ((x)->fx_r_type == BFD_RELOC_RVA)
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif /* OBJ_COFF */
|
#endif /* OBJ_COFF */
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user