This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 8/9] not for review: bfd: coff-arm: hack: Don't adjust pcrel relocations


This is a huge hack - the right fix would probably be to
adjust md_pcrel_from_section in gas/config/tc-arm.c
to do the right thing, whatever that is.
---
 bfd/coff-arm.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 1ffebfa..dee98bf 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -709,6 +709,11 @@ coff_thumb_pcrel_common (bfd *abfd,
   bfd_vma offmsk;
   bfd_vma signbit;
 
+#ifdef ARMV7_WIN
+  // HACK
+  return flag;
+#endif
+
   /* NOTE: This routine is currently used by GAS, but not by the link
      phase.  */
   switch (btype)
-- 
1.7.9.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]