Fixes a problem generating relocs for thumb function calls to local symbols defined...
authorNick Clifton <nickc@redhat.com>
Thu, 12 Mar 2015 15:58:37 +0000 (15:58 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 12 Mar 2015 15:58:37 +0000 (15:58 +0000)
commit93ef582debb0a179916965a882f4344223569219
treeb48d6097849db2a37cf5664fe18294a81c2c9f78
parent811a659a779fdf93293fe1105d99e9db171a8b68
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.
gas/ChangeLog
gas/config/tc-arm.c
gas/config/tc-arm.h