* config/tc-ppc.h (tc_fix_adjustable): Define.
authorIan Lance Taylor <ian@airs.com>
Thu, 28 Sep 1995 16:17:53 +0000 (16:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 28 Sep 1995 16:17:53 +0000 (16:17 +0000)
(ppc_pe_fix_adjustable): Declare.
* config/tc-ppc.c (ppc_pe_fix_adjustable): New function.

gas/ChangeLog
gas/config/tc-ppc.c

index 7e61a8dd014107895af532928977009e03f6e3b0..24ef676cb019ecdb98367ab5d821d66f1d087a5f 100644 (file)
@@ -1,3 +1,9 @@
+Thu Sep 28 12:09:19 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * config/tc-ppc.h (tc_fix_adjustable): Define.
+       (ppc_pe_fix_adjustable): Declare.
+       * config/tc-ppc.c (ppc_pe_fix_adjustable): New function.
+
 Thu Sep 28 01:11:58 1995  Doug Evans  <dje@deneb.cygnus.com>
 
        * config/tc-arm.h (TARGET_FORMAT): Define for arm-coff.
index c5eaac8a439aac7c4bb2747985292f85fb5c7a62..bd09149d21c287d7005839b304ac9aabaa7080e1 100644 (file)
@@ -2977,6 +2977,15 @@ ppc_pe_function (ignore)
   demand_empty_rest_of_line ();
 }
 
+/* Don't adjust TOC relocs to use the section symbol.  */
+
+int
+ppc_pe_fix_adjustable (fix)
+     fixS *fix;
+{
+  return fix->fx_r_type != BFD_RELOC_PPC_TOC16;
+}
+
 #endif
 \f
 #ifdef OBJ_XCOFF