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

[Xen-devel] Re: [Xen-staging] [xen-unstable] [LINUX] Support creating EL

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [Xen-staging] [xen-unstable] [LINUX] Support creating ELF note segments in the kernel ELF image.
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Tue, 22 Aug 2006 08:47:13 -0400
Cc: xen-staging@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Aug 2006 05:47:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200608221122.k7MBMHqr021809@xxxxxxxxxxxxxxxxxxxxxxx>
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: <200608221122.k7MBMHqr021809@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On Aug 22, 2006, at 7:22 AM, Xen staging patchbot-unstable wrote:

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Date 1156245643 -3600
# Node ID a4550b7488400c44a9f27c92115c8e364493837a
# Parent  cd4e7ace4e58d9e35c08ccaa4677c6b6d0cf137b
[LINUX] Support creating ELF note segments in the kernel ELF image.

[snip]
diff -r cd4e7ace4e58 -r a4550b748840 linux-2.6-xen-sparse/arch/i386/ kernel/vmlinux.lds.S --- a/linux-2.6-xen-sparse/arch/i386/kernel/vmlinux.lds.S Tue Aug 22 11:34:46 2006 +0100 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/vmlinux.lds.S Tue Aug 22 12:20:43 2006 +0100
@@ -12,6 +12,12 @@ OUTPUT_ARCH(i386)
 OUTPUT_ARCH(i386)
 ENTRY(phys_startup_32)
 jiffies = jiffies_64;
+
+PHDRS {
+       text PT_LOAD FLAGS(5);  /* R_E */
+       data PT_LOAD FLAGS(7);  /* RWE */

Are you sure you want to explicitly create a data segment that was not there before?

+       note PT_NOTE FLAGS(4);  /* R__ */

FLAGS() should be zero. The NOTE segment(s) are usually for the ELF interpreter and not software accessible to the program. If it is your intention for this to be accessible by your program then you need a symbolic reference to it and it probably should not be in a segment all on its own.

-JX


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

<Prev in Thread] Current Thread [Next in Thread>