debug info getting removed with --gc-sections flag
Ian Thompson
iant@palmchip.com
Tue Mar 20 11:13:00 GMT 2001
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
More information about the Gcc-help
mailing list