This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: GAS 2.11.1 doesn't work for sh-hitachi-coff
- To: "'Nick Clifton'" <nickc at cambridge dot redhat dot com>
- Subject: RE: GAS 2.11.1 doesn't work for sh-hitachi-coff
- From: "Schirmer, Hartmut" <SchirmerH at Innovative-Systems dot de>
- Date: Wed, 13 Jun 2001 18:21:01 +0200
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
> Why is .file in COFF illegal and why did gas 2.10.1 accept it ?
>
> obj-coff.c has
>
> void
> c_dot_file_symbol (filename)
> char *filename;
> {
> symbolS *symbolP;
>
> symbolP = symbol_new (".file",
> SEG_DEBUG,
> 0,
> &zero_address_frag);
> ...
>
> I'll try and block out the two lines in tc-sh.c
It worked !
Hartmut
*** tc-sh.c.orig Thu Jun 7 03:15:32 2001
--- tc-sh.c Wed Jun 13 16:14:27 2001
***************
*** 97,104 ****
--- 97,106 ----
{"2byte", s_uacons, 2},
{"4byte", s_uacons, 4},
{"8byte", s_uacons, 8},
+ #ifdef BFD_ASSEMBLER
{"file", dwarf2_directive_file, 0 },
{"loc", dwarf2_directive_loc, 0 },
+ #endif
{0, 0, 0}
};
***************
*** 1940,1946 ****
--- 1942,1950 ----
}
}
+ #ifdef BFD_ASSEMBLER
dwarf2_emit_insn (size);
+ #endif
}
/* This routine is called each time a label definition is seen. It