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-changelog

[Xen-changelog] [xen-3.4-testing] libelf: make elf_phdr_is_loadable load

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] libelf: make elf_phdr_is_loadable load read-only segments.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:42 -0800
Delivery-date: Wed, 03 Feb 2010 01:58:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265190740 0
# Node ID 3c1e7d7927f73e0df2399bbd73977393cc9d5285
# Parent  3e79b92cf4eaee5b30a20a6b0a9509dd9c1648bb
libelf: make elf_phdr_is_loadable load read-only segments.

From: Brad Plant <bplant@xxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   20868:2bc69db28153
xen-unstable date:        Fri Jan 29 07:14:32 2010 +0000
---
 xen/common/libelf/libelf-tools.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 3e79b92cf4ea -r 3c1e7d7927f7 xen/common/libelf/libelf-tools.c
--- a/xen/common/libelf/libelf-tools.c  Tue Jan 26 14:21:13 2010 +0000
+++ b/xen/common/libelf/libelf-tools.c  Wed Feb 03 09:52:20 2010 +0000
@@ -235,7 +235,7 @@ int elf_phdr_is_loadable(struct elf_bina
     uint64_t p_type = elf_uval(elf, phdr, p_type);
     uint64_t p_flags = elf_uval(elf, phdr, p_flags);
 
-    return ((p_type == PT_LOAD) && (p_flags & (PF_W | PF_X)) != 0);
+    return ((p_type == PT_LOAD) && (p_flags & (PF_R | PF_W | PF_X)) != 0);
 }
 
 /*

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] libelf: make elf_phdr_is_loadable load read-only segments., Xen patchbot-3.4-testing <=