This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Does dwarf2 really work with a.out?
- To: binutils at sourceware dot cygnus dot com
- Subject: Does dwarf2 really work with a.out?
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Mon, 11 Dec 2000 12:53:54 -0800
Looking through the gas code, I don't believe a.out can work with
dwarf2. The problem is a.out has the fixed number of sections. But
dwarf2dbg.c calls
info_seg = subseg_new (".debug_info", 0);
abbrev_seg = subseg_new (".debug_abbrev", 0);
aranges_seg = subseg_new (".debug_aranges", 0);
I believe the a.out version of subseg_new () will complain
Attempt to switch to nonexistent segment ".debug_info"
since a.out doesn't know those new sections nor it can create the new
one on the fly. Should I submit a patch to disable dwarf2 for a.out?
--
H.J. Lu (hjl@valinux.com)