summaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2002-09-09 21:31:40 +0000
committerJeff Law <law@redhat.com>2002-09-09 21:31:40 +0000
commit502b19cb2a782d3d866874f4861a635d0706e938 (patch)
tree925f3aa724b4dde0748e272b46a6e3e4426627cf /gas/config/tc-hppa.c
parentd1f5b980c3caab8fecf0feac8f0ef17f427ba16d (diff)
downloadbinutils-gdb-502b19cb2a782d3d866874f4861a635d0706e938.tar.gz
* config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
marker relocations such as ENTRY/EXIT. * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies to both OBJ_ELF and OBJ_SOM.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 166b50c0ce9..4f617318b86 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -4419,9 +4419,6 @@ md_apply_fix3 (fixP, valP, seg)
offsetT new_val;
int insn, val, fmt;
- if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0)
- fixP->fx_done = 1;
-
/* SOM uses R_HPPA_ENTRY and R_HPPA_EXIT relocations which can
never be "applied" (they are just markers). Likewise for
R_HPPA_BEGIN_BRTAB and R_HPPA_END_BRTAB. */
@@ -4448,6 +4445,9 @@ md_apply_fix3 (fixP, valP, seg)
return;
#endif
+ if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0)
+ fixP->fx_done = 1;
+
/* There should have been an HPPA specific fixup associated
with the GAS fixup. */
hppa_fixP = (struct hppa_fix_struct *) fixP->tc_fix_data;