|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.4-testing] libelf: make elf_phdr_is_loadable load
# 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 <=
|
|
|
|
|