aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-03-12 15:58:37 +0000
committerNick Clifton <nickc@redhat.com>2015-03-12 15:58:37 +0000
commit93ef582debb0a179916965a882f4344223569219 (patch)
treeb48d6097849db2a37cf5664fe18294a81c2c9f78 /gas/config/tc-arm.h
parent811a659a779fdf93293fe1105d99e9db171a8b68 (diff)
downloadfsf-binutils-gdb-93ef582debb0a179916965a882f4344223569219.zip
fsf-binutils-gdb-93ef582debb0a179916965a882f4344223569219.tar.gz
fsf-binutils-gdb-93ef582debb0a179916965a882f4344223569219.tar.bz2
Fixes a problem generating relocs for thumb function calls to local symbols defined in other sections.
PR gas/17444 * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment to arm_apply_sym_value. Update prototype. * config/tc-arm.c (arm_apply_sym_value): Add segment argument. Do not apply the value if the symbol is in a different segment to the current segment.
Diffstat (limited to 'gas/config/tc-arm.h')
-rw-r--r--gas/config/tc-arm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h
index 91db285..b604f04 100644
--- a/gas/config/tc-arm.h
+++ b/gas/config/tc-arm.h
@@ -327,7 +327,7 @@ struct arm_segment_info_type
#ifdef OBJ_ELF
/* Values passed to md_apply_fix don't include the symbol value. */
-# define MD_APPLY_SYM_VALUE(FIX) arm_apply_sym_value (FIX)
+# define MD_APPLY_SYM_VALUE(FIX) arm_apply_sym_value (FIX, this_segment)
#endif
#ifdef OBJ_COFF
@@ -372,7 +372,7 @@ void tc_pe_dwarf2_emit_offset (symbolS *, unsigned int);
#ifdef OBJ_ELF
#define CONVERT_SYMBOLIC_ATTRIBUTE(name) arm_convert_symbolic_attribute (name)
extern int arm_convert_symbolic_attribute (const char *);
-extern int arm_apply_sym_value (struct fix *);
+extern int arm_apply_sym_value (struct fix *, segT);
#endif
#define tc_comment_chars arm_comment_chars