[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link


  • To: Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Wed, 03 Jan 2007 15:20:29 +0000
  • Delivery-date: Wed, 03 Jan 2007 07:20:14 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AccvSrOQ8jOC7Js9Edui8QAX8io7RQ==
  • Thread-topic: [Xen-devel] [PATCH] mkelf32: Correct sh_link

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.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.