|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link
On Wednesday 03 January 2007 16:20, Keir Fraser wrote:
> On 3/1/07 15:11, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:
> > On Wednesday 03 January 2007 14:57, Keir Fraser wrote:
> >> SHT_PROGBITS sections do not use the sh_link field. It's used by
> >> symbol-table sections, relocation-entry sections, and suchlike, of which
> >> we don't have any. And .shstrtab section is never linked to.
> >
> > Why do you strip the symbol table and re-add it in an unusual format
> > when linking the bootable ELF image? Is this a historical relict?
>
> No bootloader would load a symbol table for us (where would it load it? How
> would it tell us about it?), so we have to internalise it into the PROGBITS
> section somehow. Stealing the Linux code to do this made sense.
The multiboot header tells us where to find the symbol and string table.
Then we can load it ourself.
Look into the NetBSD code how this would work:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/include/multiboot.h?annotate=1.4
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/i386/multiboot.c?annotate=1.9
;-)
Would you accept a patch, that makes XEN bootable as an ELF image with
ELF symbol-name and string tables? If yes, then I will work on this.
Christoph
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] mkelf32: Correct sh_link, Christoph Egger
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Christoph Egger
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link,
Christoph Egger <=
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, John Levon
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, John Levon
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, John Levon
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, John Levon
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, Keir Fraser
- Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link, John Levon
|
|
|
|
|