This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Does dwarf2 really work with a.out?


On Mon, Dec 11, 2000 at 12:53:54PM -0800, H . J . Lu wrote:
> 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?

Sure that follows from the definition of a.out (also dwarf-1 for the same
reason).  There are also some COFF varients (such as Mips ECOFF) where you
either can't create new sections, or section names must be limited to 8
characters.

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]