[mep] handle any forced relocs in gas
DJ Delorie
dj@redhat.com
Thu Aug 27 03:32:00 GMT 2009
Committed.
* config/tc-mep.c (md_pcrel_from_section): Handle any other
forced-relocation cases.
Index: config/tc-mep.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mep.c,v
retrieving revision 1.12
diff -p -U3 -r1.12 tc-mep.c
--- config/tc-mep.c 12 Aug 2009 03:40:48 -0000 1.12
+++ config/tc-mep.c 26 Aug 2009 23:27:32 -0000
@@ -1817,6 +1817,11 @@ md_pcrel_from_section (fixS *fixP, segT
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. */
More information about the Binutils
mailing list