This is the mail archive of the binutils@sources.redhat.com 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]

Re: A patch to fix COFF


On Thu, Feb 22, 2001 at 04:12:04PM -0800, H . J . Lu wrote:
> I'd like to check into this patch to fix
> 
> http://sources.redhat.com/ml/binutils/2001-02/msg00333.html
> http://sources.redhat.com/ml/binutils/2001-02/msg00334.html
> 
> The problem is
> 
>   {"file", dwarf2_directive_file, 0},
> 
> If BFD_ASSEMBLER is not defined, as will barf on
> 
> 	.file "foo.c"
> 

I think it is the right patch.

Thanks.


H.J.
--
2001-02-22  H.J. Lu  <hjl@gnu.org>

	* dwarf2dbg.c (dwarf2_directive_file): Call s_app_file if
	BFD_ASSEMBLER is not defined.

Index: dwarf2dbg.c
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/dwarf2dbg.c,v
retrieving revision 1.19
diff -u -p -r1.19 dwarf2dbg.c
--- dwarf2dbg.c	2001/02/03 23:13:19	1.19
+++ dwarf2dbg.c	2001/02/23 00:17:24
@@ -1281,10 +1281,10 @@ dwarf2_emit_insn (size)
 }
 
 void
-dwarf2_directive_file (dummy)
-     int dummy ATTRIBUTE_UNUSED;
+dwarf2_directive_file (appfile)
+     int appfile;
 {
-  as_fatal (_("dwarf2 is not supported for this object file format"));
+  s_app_file (appfile);
 }
 
 void


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