Commit: V850: Define TC_FIX_SIZE_SLACK
Nick Clifton
nickc@redhat.com
Mon May 23 09:28:00 GMT 2011
Hi Guys,
I am checking in the patch below to fix a problem with the V850 port
of gas when it is invoked with assembler relaxation enabled. The
resulting frags can need a couple of extra bytes of slack to handle
the alignment of the relaxed insns.
Cheers
Nick
gas/ChangeLog
2011-05-23 Nick Clifton <nickc@redhat.com>
* config/tc-v850.h (TC_FX_SIZE_SLACK): Define.
Index: gas/config/tc-v850.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.h,v
retrieving revision 1.22
diff -u -3 -p -r1.22 tc-v850.h
--- gas/config/tc-v850.h 3 Jul 2007 11:01:05 -0000 1.22
+++ gas/config/tc-v850.h 23 May 2011 09:25:09 -0000
@@ -70,6 +70,9 @@ extern const struct relax_type md_relax_
#define HANDLE_ALIGN(frag) v850_handle_align (frag)
extern void v850_handle_align (fragS *);
+/* We need space in a frag's fixed size to allow for alignment when relaxing. */
+#define TC_FX_SIZE_SLACK(FIX) 2
+
#define MD_PCREL_FROM_SECTION(FIX, SEC) v850_pcrel_from_section (FIX, SEC)
extern long v850_pcrel_from_section (struct fix *, asection *);
More information about the Binutils
mailing list