From 4e7defc130f5b148c9df0dc7c8f5d1ec6fa1ad3b Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 26 Aug 2009 23:28:12 +0000 Subject: [PATCH] * config/tc-mep.c (md_pcrel_from_section): Handle any other forced-relocation cases. --- gas/ChangeLog | 5 +++++ gas/config/tc-mep.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index d62da94..89a61d0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-08-26 DJ Delorie + + * config/tc-mep.c (md_pcrel_from_section): Handle any other + forced-relocation cases. + 2009-08-26 Ralf Wildenhues * Makefile.am (TARGET_CPU_CFILES): Add config/tc-moxie.c. 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. */ -- 2.7.4