This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas s_leb128 should call md_flush_pending_output
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 10 Mar 2004 14:49:50 -0800
- Subject: gas s_leb128 should call md_flush_pending_output
- Organization: Tensilica, Inc.
As far as I understand it, md_flush_pending_output is supposed to be
called whenever there is a data allocation pseudo-op. It is not called
for .sleb128 or .uleb128, and that seems like a bug. This is causing
problems for the Xtensa port.
Is this patch OK?
2004-03-10 Bob Wilson <bob.wilson@acm.org>
* read.c (s_leb128): Call md_flush_pending_output.
Index: read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.75
diff -u -p -r1.75 read.c
--- read.c 9 Feb 2004 12:12:42 -0000 1.75
+++ read.c 10 Mar 2004 22:28:26 -0000
@@ -4372,6 +4372,10 @@ s_leb128 (int sign)
{
expressionS exp;
+#ifdef md_flush_pending_output
+ md_flush_pending_output ();
+#endif
+
do
{
expression (&exp);