Mail Archives: djgpp-workers/2002/06/26/08:34:26
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 -