This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 8/9] not for review: bfd: coff-arm: hack: Don't adjust pcrel relocations
- From: Martin Storsjo <martin at martin dot st>
- To: binutils at sourceware dot org
- Date: Thu, 2 May 2013 02:39:07 +0300
- Subject: [PATCH 8/9] not for review: bfd: coff-arm: hack: Don't adjust pcrel relocations
- References: <1367451548-71365-1-git-send-email-martin at martin dot st>
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