lkml.org 
[lkml]   [2005]   [May]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromBlaisorblade <>
SubjectRe: [uml-devel] Re: [patch 4/4] uml: make it link in tt mode against NPTL glibc
DateSat, 28 May 2005 13:38:22 +0200
On Friday 27 May 2005 06:20, Al Viro wrote:
> On Fri, May 27, 2005 at 02:40:24AM +0200, blaisorblade@yahoo.it wrote:
> > To make sure switcheroo() can execute when we remap all the executable
> > image, we used a trick to make it use a local copy of errno... this trick
> > does not work with NPTL glibc, only with LinuxThreads, so use another
> > (simpler) one to make it work anyway.
> >
> > Might need compile testing on different host archs, since it changes
> > __syscall_return from <asm/unistd.h>.
>
> For one thing, it's broken since mmap2() doesn't exist on amd64.  This
> stuff *is* low-level - as low-level as it gets.
> It's clearly 
> per-architecture.
Yes, agreed.
> See ftp.linux.org.uk/pub/people/viro/UM14-unmap-RC12-rc4 
> for a fix...
Seems reasonable except that on i386 you keep the old linker script, indeed; I 
think that the linker script shouldn't be per architecture.

Also (not verified) one section is either read-write or read-only, so 
merging .bss and .text does not seem good to me (I separated them on 
purpose).

Good catch for using .bss instead of .data.
-- 
Paolo Giarrusso, aka Blaisorblade
Skype user "PaoloGiarrusso"
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade





___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-28 13:39    [from the cache]
©2003-2008