This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

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


"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


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