* config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
authorJeff Law <law@redhat.com>
Mon, 9 Sep 2002 21:31:40 +0000 (21:31 +0000)
committerJeff Law <law@redhat.com>
Mon, 9 Sep 2002 21:31:40 +0000 (21:31 +0000)
        marker relocations such as ENTRY/EXIT.
        * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
        to both OBJ_ELF and OBJ_SOM.

gas/ChangeLog
gas/config/tc-hppa.c
gas/config/tc-hppa.h

index 4512f809d081c0f895b624fe3029934cbdc1447f..f8b9d76926048c621ff0de1340de1b6bdb36666e 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-05  Jeff Law  <law@redhat.com>
+
+        * 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.
+
 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
 
        * doc/internals.texi (md_apply_fix3): Expand.
index 166b50c0ce9e18085083c9d0ac6f5facb8ade9fe..4f617318b86e0ab61341c527783e8089bddf13a1 100644 (file)
@@ -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;
index aa0234655129fa9938bfce9b07bebf428499fedd..ea1ce9cc930a154f558f649b8c7e759533e596b8 100644 (file)
@@ -161,10 +161,10 @@ int hppa_fix_adjustable PARAMS((struct fix *));
 #define UNDEFINED_DIFFERENCE_OK
 #endif
 
-#ifdef OBJ_ELF
 /* Values passed to md_apply_fix3 don't include the symbol value.  */
 #define MD_APPLY_SYM_VALUE(FIX) 0
 
+#ifdef OBJ_ELF
 /* Handle .type psuedo.  Given a type string of `millicode', set the
    internal elf symbol type to STT_PARISC_MILLI, and return
    BSF_FUNCTION for the BFD symbol type.  */
This page took 0.037488 seconds and 4 git commands to generate.