This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[mep] handle any forced relocs in gas


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]