mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ld.so on FC7 is mmap'ing shared libraries right in over guest memory.
@ 2007-08-09 11:07 Rusty Russell
  2007-08-09 14:48 ` Arjan van de Ven
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2007-08-09 11:07 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Andrew Morton, ron minnich, lguest, lkml - Kernel Mailing List

From: Ronald G. Minnich <rminnich@gmail.com>

[ 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 <rminnich@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

diff --git a/Documentation/lguest/Makefile b/Documentation/lguest/Makefile
index 31e794e..60136d8 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-10 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-09 11:07 [PATCH] ld.so on FC7 is mmap'ing shared libraries right in over guest memory Rusty Russell
2007-08-09 14:48 ` Arjan van de Ven
2007-08-10 16:35   ` ron minnich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome