All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nuno Silva <nuno.silva@vgertech.com>
To: Oleg Drokin <green@linuxhacker.ru>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] UML running on host-kernel 2.6.0 with NPTL-enabled glibc problem
Date: Mon, 12 Jan 2004 03:49:07 +0000	[thread overview]
Message-ID: <40021933.5090604@vgertech.com> (raw)
In-Reply-To: <200401102025.i0AKPXeA004382@car.linuxhacker.ru>



Oleg Drokin wrote:
> Hello!
> 
> Nuno Silva <nuno.silva@vgertech.com> wrote:
> 
> NS> I've been trying for days and made lots of tests and it seems that the
> NS> 2.4 UML binary can't run on a host with 2.6 kernel and nptl-enabled glibc.
> 
> Hm. I guess you are running some sort of old uml code.
> The fix was oneliner and included long ago. See the patch below.
> Apply it and then recompile.
> 
> I use 2.6.1 + glibc 2.3.2-101 from Fedora Core 1,
> I hope this is new enough? ;)

Thanks, but this patch is in my tree (2.4.23-um1). And, as BlaisorBlade 
mentions in the next message, I'm trying to build a dynamic UML -- This 
is mainly to try to take advantage of sysenter/sysexit. Sysenter could 
speedup UML a bit :)

Also, the version of glibc itself says nothing about this subject. You 
must make sure that you're using a nptl-tls-enabled one. These optimized 
libraries are usually in /lib/tls/i686/cmov/* or something similar. One 
nice way to verify is ldd:

ldd on my debian sid instalation:
# ldd ./linux
         libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x40018000)
         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x4001b000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
#

ldd in my chroot (only) with optimized glibc:
# ldd ./linux
         linux-gate.so.1 =>  (0xffffe000)
         libutil.so.1 => /lib/libutil.so.1 (0x40019000)
         libc.so.6 => /lib/libc.so.6 (0x4001c000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
#

That "linux-gate" thing is the system call multiplexer that enables 
sysenter.

DISCLAIMER: I'm no expert in this linker/sysenter/glibc magic so I might 
be wrong. The fact is that ./linux doesn't run when ldd reports 
"linux-gate" in it's output.

I'll try BlaisorBlade's /arch/um/dyn.lds.S patch next.

Thanks,
Nuno Silva


> 
> Bye,
>     Oleg
> 
> --- linux-2.4.20.orig/arch/um/link.ld.in	2003-10-25 00:35:59.000000000 +0400
> +++ linux-2.4.20/arch/um/link.ld.in	2003-10-25 00:36:02.000000000 +0400
> @@ -6,7 +6,6 @@
>  {
>    . = START() + SIZEOF_HEADERS;
>  
> -  . = ALIGN(4096);
>    __binary_start = .;
>  ifdef(`MODE_TT', `
>    .thread_private : {
> 



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      parent reply	other threads:[~2004-01-12  3:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09  9:09 [uml-devel] UML running on host-kernel 2.6.0 with NPTL-enabled glibc problem Nuno Silva
2004-01-09 13:19 ` La Monte H.P. Yarroll
2004-01-09 13:29   ` La Monte H.P. Yarroll
2004-01-09 13:39     ` Nuno Silva
2004-01-09 13:35   ` Nuno Silva
2004-01-10 20:25 ` Oleg Drokin
2004-01-11 10:49   ` BlaisorBlade
2004-01-11 18:28     ` Oleg Drokin
2004-01-12  3:49   ` Nuno Silva [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40021933.5090604@vgertech.com \
    --to=nuno.silva@vgertech.com \
    --cc=green@linuxhacker.ru \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.