Subject: Re: ddb line number support for ELF
To: None <>
From: ITOH Yasufumi <>
List: tech-kern
Date: 07/31/2000 12:01:08
In article <>
jhawk@MIT.EDU writes:

> >Hmm, it seems you have changed the interface to pass ELF symbols....
> I haven't changed the interface at all. This has all been speculation,
> no commits made.

Sorry for confusion.  I meant this change:

	cvs rdiff -r1.11 -r1.12 syssrc/sys/ddb/db_elf.c

| revision 1.12
| date: 2000/07/07 21:50:26;  author: jhawk;  state: Exp;  lines: +14 -40
| Detect ELF sections (string and symbol tables) by looking them
| up by name (in .shstrtab) instead of guessing based on section
| type (and throwing away the small one). In addition to being cleaner,
| multiple symbol tables are no longer and error condition, so
| booting netbsd.gdb no longer results in ddb being unable to use
| *any* symbols.

> >My boot loader can't pass symbols to the kernel now, since it doesn't
> >use the algorithm....  It excludes shstrtab since it wasn't used.
> I'm not sure what you're saying. Do you mean debugging symbols (.stab)
> or regular global symbols.

regular global symbols

> Or are you using a boot loader other than biosboot/libsa?

It doesn't load shstrtab section and the behavior of current code
is undefined.

> >I'm not saying that you should revert the changes, but
> >will you please document the specification of the interface?
> >A spec like "code is the spec" will easily be broken.
> I haven't made any changes, so you have me confused...

This shows the easiness. :-)

ITOH, Yasufumi <>