Bug 10304 - ld: Dwarf Error: mangled line number section.
Summary: ld: Dwarf Error: mangled line number section.
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 21:35 UTC by John David Anglin
Modified: 2009-10-29 21:15 UTC (History)
1 user (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2009-06-21 21:35:09 UTC
Executing on host: /home/dave/gnu/gcc-4.5/objdir/gcc/xgcc -B/home/dave/gnu/gcc-4
.5/objdir/gcc/ -ggdb3 -DDEBUG_ASSERT -I/home/dave/gnu/gcc-4.5/gcc/libmudflap/tes
tsuite -I/home/dave/gnu/gcc-4.5/gcc/libmudflap/testsuite/.. -I.. -L/home/dave/gn
u/gcc-4.5/objdir/hppa-linux/./libmudflap/.libs
/home/dave/gnu/gcc-4.5/gcc/libmudflap/testsuite/libmudflap.c/fail17-frag.c 
-static -fmudflap -lmudflap 
-L/home/dave/gnu/gcc-4.5/objdir/hppa-linux/./libmudflap/testsuite -ldl -lm   -o
./fail17-frag.exe    (timeout = 300)/home/dave/opt/gnu/bin/ld: Dwarf Error:
mangled line number section.
...

I suspect this is caused by the new line table discriminator support.
Comment 1 Nick Clifton 2009-06-22 11:47:48 UTC
Hi John,

  Can you create a standalone testcase to reproduce this problem ?  I can build
an hppa-linux-gnu compiler, but I do not have a sysroot suitable for creating an
entire toolchain.

Cheers
  Nick
Comment 2 dave@hiauly1.hia.nrc.ca 2009-06-22 14:01:16 UTC
Subject: Re:  ld: Dwarf Error: mangled line number section.

Hi Nick,

>   Can you create a standalone testcase to reproduce this problem ?  I can build
> an hppa-linux-gnu compiler, but I do not have a sysroot suitable for creating an
> entire toolchain.

When I get a chance, I think that I will have to debug the linker to
see if I can determine which file/library is the source of the problem.
Possibly, there's an issue with old libraries.  At the moment, I'm
working on several other bugs.  Probably, could arrange an account
on gsyprf11.external.hp.com ;)

The problem only occurs with a few tests in the libmudflap testsuite.
I looked at the assembly autput from the first fail and all the .loc
directives seemed reasonable.  I tried running the mudflap testsuite
reverting first to the stock debian ld and then gas.  Changing to
debian ld didn't make a difference in the message.  However, debian
gas complained about the .loc directives.

This appeared when I did an binutils update on June 20.

Regards,
Dave
Comment 3 Cary Coutant 2009-10-29 21:15:59 UTC
Fixed with:
http://sourceware.org/ml/binutils/2009-06/msg00489.html