delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/26/08:34:26

From: pavenis AT lanet DOT lv
To: djgpp-workers AT delorie DOT com
Date: Wed, 26 Jun 2002 15:32:51 +0300
MIME-Version: 1.0
Subject: Re: gcc-3.1.X and DWARF2 debugging info for DJGPP
Message-ID: <3D19DEA3.24374.32E102@localhost>
References: <3D19C2DD DOT 1004 DOT 8F32B0 AT localhost>
In-reply-to: <Pine.SUN.3.91.1020626143939.13169A-100000@is>
X-mailer: Pegasus Mail for Windows (v4.01)
Reply-To: djgpp-workers AT delorie DOT com

On 26 Jun 2002 at 14:41, Eli Zaretskii wrote:

> Personally, I'm not sure we are ready to switch to DWARF2 as the default 
> format.  But if others think otherwise, I won't object.

One minor nuisance with DWARF2 debugging info pops up when we 
have unresolved reference (I have already mentioned that in this mailing list):

D:\Work\Source\devel\expch>make -f expch.mak
gcc   -g     -D__TEST_EXPCH      -c expch.c -o expch.o
gcc  -D__TEST_EXPCH -o expch  expch.o
c:/djgpp/bin/ld.exe: Dwarf Error: Abbrev offset (1456) greater than or equal to
.debug_abbrev size (295).
expch.o(.text+0x4c6):expch.c: undefined reference to `_foo'
collect2: ld returned 1 exit status
make.exe: *** [expch] Error 1

D:\Work\Source\devel\expch>ld --version
GNU ld version 2.12.1
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

D:\Work\Source\devel\expch>make -f expch.mak
gcc   -g     -D__TEST_EXPCH      -c expch.c -o expch.o
gcc  -D__TEST_EXPCH -o expch  expch.o
c:/djgpp/bin/ld.exe: Dwarf Error: Abbrev offset (1456) greater than or equal to 
.debug_abbrev size (295).
expch.o(.text+0x4c6):expch.c: undefined reference to `_foo'
collect2: ld returned 1 exit status
make.exe: *** [expch] Error 1

D:\Work\Source\devel\expch>ld --version
GNU ld version 2.12.1
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

D:\Work\Source\devel\expch>gcc -v
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.11/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --
disable-nls
Thread model: single
gcc version 3.1.1 20020625 (prerelease)

It appears only when we already have linker error (unresolved reference), so 
additional error is nuisance but no more. There were similar trouble under 
Linux,
but it was fixed in latest updates in binutils (as we know H.J.Lu versions 
of binutils are mostly used for Linux).

Andris





- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019