From 11b072f46c3c02c198a27b5abb0184778a2d0b73 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <ian@airs.com>
Date: Thu, 28 Sep 1995 16:17:53 +0000
Subject: [PATCH] 	* config/tc-ppc.h (tc_fix_adjustable): Define. 
 (ppc_pe_fix_adjustable): Declare. 	* config/tc-ppc.c
 (ppc_pe_fix_adjustable): New function.

---
 gas/ChangeLog       | 6 ++++++
 gas/config/tc-ppc.c | 9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7e61a8dd014..24ef676cb01 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index c5eaac8a439..bd09149d21c 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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
 
 #ifdef OBJ_XCOFF