From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH] mkelf32: Correct sh_link Date: Wed, 3 Jan 2007 10:30:54 +0100 Message-ID: <200701031030.54551.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_Of3mFll6XT6YhdO" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_Of3mFll6XT6YhdO Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! According to the ELF Spec, sh_link points to the String table. The attached patch fixes this. Christoph --Boundary-00=_Of3mFll6XT6YhdO Content-Type: text/x-diff; charset=us-ascii; name=xen-mkelf32.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-mkelf32.diff 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 */ --Boundary-00=_Of3mFll6XT6YhdO Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_Of3mFll6XT6YhdO--