aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-12-16 17:44:36 +0000
committerNick Clifton <nickc@redhat.com>2003-12-16 17:44:36 +0000
commit250355db8249c4159b32a9d9d82f7eb0f8f50aad (patch)
tree3b7fdabb7997cfe154822091a277f89f80260180 /gas/config
parent87cc7031acb7cc7a3b69dcfd79c3d71aa57fe477 (diff)
downloadgdb-250355db8249c4159b32a9d9d82f7eb0f8f50aad.zip
gdb-250355db8249c4159b32a9d9d82f7eb0f8f50aad.tar.gz
gdb-250355db8249c4159b32a9d9d82f7eb0f8f50aad.tar.bz2
Remove -8 bias on PC-relative load instructions for arm-wince-pe target
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 85afdc2..e07185e 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -7299,7 +7299,9 @@ do_adr (str)
/* Frag hacking will turn this into a sub instruction if the offset turns
out to be negative. */
inst.reloc.type = BFD_RELOC_ARM_IMMEDIATE;
+#ifndef TE_WINCE
inst.reloc.exp.X_add_number -= 8; /* PC relative adjust. */
+#endif
inst.reloc.pc_rel = 1;
end_of_line (str);
@@ -7330,7 +7332,9 @@ do_adrl (str)
/* Frag hacking will turn this into a sub instruction if the offset turns
out to be negative. */
inst.reloc.type = BFD_RELOC_ARM_ADRL_IMMEDIATE;
+#ifndef TE_WINCE
inst.reloc.exp.X_add_number -= 8; /* PC relative adjust */
+#endif
inst.reloc.pc_rel = 1;
inst.size = INSN_SIZE * 2;
}