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: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] mkelf32: Correct sh_link
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Thu, 4 Jan 2007 02:58:09 +0000
Cc: grel <grelamen@xxxxxxxxx>
Delivery-date: Wed, 03 Jan 2007 18:55:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8141336.post@xxxxxxxxxxxxxxx>
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: <200701031030.54551.Christoph.Egger@xxxxxxx> <8141336.post@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
> I am a newbie and I would like to know how to apply this patch.
> Can someone provide me with steps.

Save the patch xen-mkelf32.diff to your hard drive

Get a xen repository and change into it:

cd xen-unstable.hg (or whatever you called it)
patch -p0 < /path/to/xen-mkelf32.diff

Should work.

Cheers,
Mark

> Christoph Egger-2 wrote:
> > Hi!
> >
> > According to the ELF Spec, sh_link points to the String table.
> > The attached patch fixes this.
> >
> > Christoph
> >
> > diff -r 886f7312257e xen/arch/x86/boot/mkelf32.c
> > --- a/xen/arch/x86/boot/mkelf32.c   Tue Jan 02 14:19:47 2007 +0000
> > +++ b/xen/arch/x86/boot/mkelf32.c   Fri Dec 22 14:22:04 2006 +0100
> > @@ -72,7 +72,7 @@ static Elf32_Shdr out_shdr[] = {
> >        DYNAMICALLY_FILLED,                    /* sh_addr */
> >        RAW_OFFSET,                            /* sh_offset */
> >        DYNAMICALLY_FILLED,                    /* sh_size */
> > -      0,                                     /* sh_link */
> > +      2,                                     /* sh_link */
> >        0,                                     /* sh_info */
> >        64,                                    /* sh_addralign */
> >        0                                      /* sh_entsize */
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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