mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Allow ADRL relocs to be adjusted in arm-coff
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-10 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
|
||||||
|
* config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
|
||||||
|
|
||||||
2001-01-10 Nick Clifton <nickc@redhat.com>
|
2001-01-10 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
|
* symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
|
||||||
|
@ -8537,6 +8537,22 @@ arm_validate_fix (fixP)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef OBJ_COFF
|
||||||
|
/* This is a little hack to help the gas/arm/adrl.s test. It prevents
|
||||||
|
local labels from being added to the output symbol table when they
|
||||||
|
are used with the ADRL pseudo op. The ADRL relocation should always
|
||||||
|
be resolved before the binbary is emitted, so it is safe to say that
|
||||||
|
it is adjustable. */
|
||||||
|
|
||||||
|
boolean
|
||||||
|
arm_fix_adjustable (fixP)
|
||||||
|
fixS * fixP;
|
||||||
|
{
|
||||||
|
if (fixP->fx_r_type == BFD_RELOC_ARM_ADRL_IMMEDIATE)
|
||||||
|
return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
/* Relocations against Thumb function names must be left unadjusted,
|
/* Relocations against Thumb function names must be left unadjusted,
|
||||||
so that the linker can use this information to correctly set the
|
so that the linker can use this information to correctly set the
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
#define TC_FIX_TYPE PTR
|
#define TC_FIX_TYPE PTR
|
||||||
#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL)
|
#define TC_INIT_FIX_DATA(FIXP) ((FIXP)->tc_fix_data = NULL)
|
||||||
|
|
||||||
#ifdef OBJ_ELF
|
#if defined OBJ_ELF || defined OBJ_COFF
|
||||||
#include "write.h" /* For definition of fixS */
|
#include "write.h" /* For definition of fixS */
|
||||||
#define obj_fix_adjustable(fixP) arm_fix_adjustable (fixP)
|
#define obj_fix_adjustable(fixP) arm_fix_adjustable (fixP)
|
||||||
boolean arm_fix_adjustable PARAMS ((fixS *));
|
boolean arm_fix_adjustable PARAMS ((fixS *));
|
||||||
|
Reference in New Issue
Block a user