Re: 2.6.17-mm1: UML failing w/o SKAS enabled
From: Andrew Morton
Date: Thu Jun 22 2006 - 17:53:17 EST
Theodore Tso <tytso@xxxxxxx> wrote:
>
> When I tried compiling 2.6.17-mm1 without SKAS support, it failed to
> link:
>
> arch/um/sys-i386/built-in.o: In function `__setup_host_supports_tls':tls.c:(.init.text+0x14): undefined reference to `check_host_supports_tls'
> collect2: ld returned 1 exit status
>
> This can fixed be addressed with the attached patch,
--- linux-2.6.17-mm1.orig/arch/um/os-Linux/sys-i386/Makefile 2006-06-17 21:49:35.000000000 -0400
+++ linux-2.6.17-mm1/arch/um/os-Linux/sys-i386/Makefile 2006-06-22 17:28:59.000000000 -0400
@@ -3,7 +3,8 @@
# Licensed under the GPL
#
-obj-$(CONFIG_MODE_SKAS) = registers.o tls.o
+obj-$(CONFIG_MODE_SKAS) = registers.o
+obj-y = tls.o
USER_OBJS := $(obj-y)
hm, I don't see anything in -mm which could cause this.
> but it the
> resulting kernel still doesn't boot:
>
> <tytso@candygram> {/usr/projects/uml/linux-2.6.17-mm1}
> 35% ./linux
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
> Checking for tmpfs mount on /dev/shm...OK
> Checking PROT_EXEC mmap in /dev/shm/...OK
> UML running in TT mode
> tracing thread pid = 25812
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
>
> <tytso@candygram> {/usr/projects/uml/linux-2.6.17-mm1}
> 36%
>
> If anyone has any suggestions, I'd appreciate them.
>
It's not clear what actually happened - did it quietly exit, or what?
I haven't run UML in several years, alas. I should work out how to do it
(again). Links to any uml-for-dummies site would be appreciated ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/