From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Thompson To: gcc-help@gcc.gnu.org Subject: debug info getting removed with --gc-sections flag Date: Tue, 20 Mar 2001 11:13:00 -0000 Message-id: <3AB7AD0E.2F7D2AD5@palmchip.com> X-SW-Source: 2001-03/msg00164.html 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