This is the mail archive of the gcc-help@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]

debug info getting removed with --gc-sections flag



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


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