aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mep.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-08-26 23:28:12 +0000
committerDJ Delorie <dj@redhat.com>2009-08-26 23:28:12 +0000
commit4e7defc130f5b148c9df0dc7c8f5d1ec6fa1ad3b (patch)
tree8832e675cb3f341ace3cc8c058fd09057728c033 /gas/config/tc-mep.c
parent07ab73a053212a07fe9c93372a0736ad599a5a4c (diff)
downloadbinutils-4e7defc130f5b148c9df0dc7c8f5d1ec6fa1ad3b.zip
binutils-4e7defc130f5b148c9df0dc7c8f5d1ec6fa1ad3b.tar.gz
binutils-4e7defc130f5b148c9df0dc7c8f5d1ec6fa1ad3b.tar.bz2
* config/tc-mep.c (md_pcrel_from_section): Handle any other
forced-relocation cases.
Diffstat (limited to 'gas/config/tc-mep.c')
-rw-r--r--gas/config/tc-mep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-mep.c b/gas/config/tc-mep.c
index 511d968..78a225a 100644
--- a/gas/config/tc-mep.c
+++ b/gas/config/tc-mep.c
@@ -1817,6 +1817,11 @@ md_pcrel_from_section (fixS *fixP, segT sec)
Let the linker figure it out. */
return 0;
+ /* If we've got other reasons for emitting this relocation, let the
+ linker handle pc-rel also. */
+ if (mep_force_relocation (fixP))
+ return 0;
+
/* Return the address of the opcode - cgen adjusts for opcode size
itself, to be consistent with the disassembler, which must do
so. */