Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e3bcf5e2785aa49f75f36a8d27d601891a7ff12b
Commit:     e3bcf5e2785aa49f75f36a8d27d601891a7ff12b
Parent:     0d027c01cd36b8cff727c78d2e40d334ba9895a8
Author:     Ronald G. Minnich <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 9 21:07:24 2007 +1000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Aug 9 08:14:56 2007 -0700

    lguest: avoid shared libraries mapped over guest memory
    
    Some versions of ld.so mmap the shared libraries right in over guest
    memory, so compile lguest statically by default.
    
    [ FC7 maps shared libraries very low, where the launcher maps guest's
      physical memory.  Quick fix is to link Launcher static, real fix is
      for 2.6.24. ]
    
    -static is a simple fix. I expect this problem will be more common than we
    like, as different distro's make different "improvements" to ld.so
    
    Signed-off-by: Ronald G. Minnich <[EMAIL PROTECTED]>
    Signed-off-by: Rusty Russell <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 Documentation/lguest/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Documentation/lguest/Makefile b/Documentation/lguest/Makefile
index 31e794e..c0b7a45 100644
--- a/Documentation/lguest/Makefile
+++ b/Documentation/lguest/Makefile
@@ -13,7 +13,9 @@ LGUEST_GUEST_TOP := ($(CONFIG_PAGE_OFFSET) - 0x08000000)
 
 CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -Wl,-T,lguest.lds
 LDLIBS:=-lz
-
+# Removing this works for some versions of ld.so (eg. Ubuntu Feisty) and
+# not others (eg. FC7).
+LDFLAGS+=-static
 all: lguest.lds lguest
 
 # The linker script on x86 is so complex the only way of creating one
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to