Why does the "gcc2_compiled" symbol depend on -g?

Eric Christopher echristo@redhat.com
Fri Apr 6 17:36:00 GMT 2001


"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



More information about the Gcc mailing list