mips_output_lineno emits stabn directives like this: $LM5: .stabn 68,0,7,$LM5 But now that current binutils have MIPS_STABS_ELF turned on, they expect the address to be relative (i.e. $LM5-main). Release: gcc-3.0 Environment: Native compiler for mipsel-linux, or cross from i386-linux to mipsel-linux.
Fix: Either binutils/gdb or gcc needs to be changed; we may have to autoconf guesstest for the version of GAS being used and whether gas is being used at all. Ugh.
Hello, could the submitter please verify whether this problem still occurs with gcc 3.3? Compiling and assembling for mipsel-linux with -g works fine for me, though with a cross-compiler, I don't have a way to test the executable... Thanks, Dara
Fixed in recent GCC/binutils combinations.