Bug 3532 - mips stabs are emitted wrongly for current binutils
Summary: mips stabs are emitted wrongly for current binutils
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 3.0
: P3 normal
Target Milestone: 3.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-02 16:36 UTC by dan
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2001-07-02 16:36:00 UTC
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.
Comment 1 dan 2001-07-02 16:36:00 UTC
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.
Comment 2 Dara Hazeghi 2003-05-25 02:52:50 UTC
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
Comment 3 Daniel Jacobowitz 2003-06-02 16:16:27 UTC
Fixed in recent GCC/binutils combinations.