This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
debug info getting removed with --gc-sections flag
- To: gcc-help at gcc dot gnu dot org
- Subject: debug info getting removed with --gc-sections flag
- From: Ian Thompson <iant at palmchip dot com>
- Date: Tue, 20 Mar 2001 11:18:38 -0800
- Organization: Palmchip Corporation
Hi,
I'm using the mips gcc cross-compiler in little-endian mode, and
running into a problem with the --gc-sections linker flag. I can
compile and run code just fine using the flag, but when I try and load
the program into a debugger, it can't read the debugging information
correctly. I'm using the stab debug format (-gstabs for gcc, --gstabs
for asm). I'm guessing that the linker flag is somehow removing a
necessary debug section, but when I do a readelf on the executable,
the mdebug section is present with or without the --gc-sections flag.
Has anyone run into this problem before?
thanks,
ian
--
----------------------------------------
Ian Thompson tel: 408.952.2023
Firmware Engineer fax: 408.570.0910
Palmchip Corporation www.palmchip.com