This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does the "gcc2_compiled" symbol depend on -g?
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Why does the "gcc2_compiled" symbol depend on -g?
- From: Eric Christopher <echristo at redhat dot com>
- Date: Fri, 06 Apr 2001 16:40:46 -0700
- CC: gcc at gcc dot gnu dot org
- References: <20010406170122.A27060@lucon.org>
"H . J . Lu" wrote:
>
> I noticed that under Linux,
>
> # gcc -c m.c -g
> # nm m.o
> 00000000 T __start
> # gcc -c m.c
> # nm m.o
> 00000000 T __start
> 00000000 t gcc2_compiled.
>
> Is that intentional?
I believe it was originally put in so that it could pass information to
gdb - or clue gdb in that the binary was compiled by gcc.
-eric
--
I will not dissect things unless instructed