On Friday 27 May 2005 06:20, Al Viro wrote:
> On Fri, May 27, 2005 at 02:40:24AM +0200, blaisorblade@... 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
> 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
Good catch for using .bss instead of .data.
Paolo Giarrusso, aka Blaisorblade
Skype user "PaoloGiarrusso"
Linux registered user n. 292729
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB