WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Thu, 4 Jan 2007 14:34:24 +0000
Cc: Christoph Egger <Christoph.Egger@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 04 Jan 2007 06:32:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1C1D35E.6AC5%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070103213257.GB6784@xxxxxxxxxxxxxxxxxxxxxxx> <C1C1D35E.6AC5%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Jan 03, 2007 at 09:40:46PM +0000, Keir Fraser wrote:

> > I had in mind something very much like this, we'd just append the
> > symtab,strtab, and our debug info on to the image and set something to
> > point to the location. This was mostly a workaround of the difficulties
> > with building those sections straight into the file in the normal ELF
> > manner, though.
> 
> We could build them in as ordinary sections in our loadable xen image, but
> the bootloader wouldn't load them into memory for us let alone point us at
> them.

Unless I'm misunderstanding badly isn't this just a case of changing the
mapfile to stick them into the single program header.

> One nice thing about 'dumbly' appending xen-syms is that the whole image is
> then extractable to a file post-crash and can be manipulated by the
> developer independently of tools like RH's crash. It's also simple to
> implement and doesn't mess with the basic structure of our loadable Xen elf
> image (which has acquired various tweaks and workarounds for multiboot
> loader bugs).

It's perhaps a bit silly to have .text twice etc.though. I'm not
familiar with the tweaks you mention so I'm sure you're right there.

john

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