summaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-12-21 02:21:00 +0000
committerNick Clifton <nickc@redhat.com>2002-12-21 02:21:00 +0000
commitef7550d5b71c6856a0ce1a715b07416eb2f2b30b (patch)
tree78542ac8a3c2e87ffc6079e0dbffa849aad8f7f0 /bfd/coff-arm.c
parent1d5a10587138580f9ed11f7ef7300548f207064c (diff)
downloadgdb-ef7550d5b71c6856a0ce1a715b07416eb2f2b30b.tar.gz
Disable WINCE workaround that subtracted 8 from pc relative relocations.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r--bfd/coff-arm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index ce711d1c4ce..2fadcbef557 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1281,9 +1281,12 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
#ifdef ARM_WINCE
/* MS ARM-CE makes the reloc relative to the opcode's pc, not
the next opcode's pc, so is off by one. */
+#if 0 /* This appears to have been true for WINCE 2.0, but it is not
+ true for WINCE 3.0. */
if (howto->pc_relative && !info->relocateable)
addend -= 8;
#endif
+#endif
/* If we are doing a relocateable link, then we can just ignore
a PC relative reloc that is pcrel_offset. It will already