Re: [HURD, PATCH] Fix stack switching at initialization time

2011-09-16 Thread Ludovic Courtès
Hi, Thomas Schwinge skribis: > On Fri, 22 Jul 2011 17:53:12 +0200, l...@gnu.org wrote: >> Pushed a slightly different version, thanks! >> >> http://git.savannah.gnu.org/cgit/hurd/glibc.git/commit/?h=t/init-first.c&id=53b56b1101fc9bb4f295f23f54e7e19f8da8da16 > > Just a heads-up, and I'm afraid,

Re: [HURD, PATCH] Fix stack switching at initialization time

2011-09-16 Thread Thomas Schwinge
Hi! Is this beast ever going to die... On Fri, 22 Jul 2011 17:53:12 +0200, l...@gnu.org wrote: > Pushed a slightly different version, thanks! > > http://git.savannah.gnu.org/cgit/hurd/glibc.git/commit/?h=t/init-first.c&id=53b56b1101fc9bb4f295f23f54e7e19f8da8da16 Just a heads-up, and I'm afraid,

Re: [HURD, PATCH] Fix stack switching at initialization time

2011-07-22 Thread Ludovic Courtès
Hi, Thomas Schwinge skribis: > This patch is to be put on top of our TopGit t/init-first.c branch, I > guess, which itself is not yet in the sourceware repository, I think? Pushed a slightly different version, thanks! http://git.savannah.gnu.org/cgit/hurd/glibc.git/commit/?h=t/init-first.c&id=

Re: [HURD, PATCH] Fix stack switching at initialization time

2011-07-22 Thread Ludovic Courtès
Hi! Thomas Schwinge skribis: > This patch is to be put on top of our TopGit t/init-first.c branch, I > guess, which itself is not yet in the sourceware repository, I think? Right, other changes in t/init-first.c aren’t in the Sourceware repo. Here’s the diff between the Savannah + this patch an

Re: [HURD, PATCH] Fix stack switching at initialization time

2011-07-22 Thread Thomas Schwinge
Hi! On Fri, 22 Jul 2011 15:48:29 +0200, l...@gnu.org wrote: > The attached patch fixes stack switching in init-first.c when cthreads > are used (this is for code compiled with a cross-GCC 4.5.1 for > i586-pc-gnu; Debian GNU/Hurd uses an older GCC and is not affected.) > > With this compiler, ‘dat

[HURD, PATCH] Fix stack switching at initialization time

2011-07-22 Thread Ludovic Courtès
Hello, The attached patch fixes stack switching in init-first.c when cthreads are used (this is for code compiled with a cross-GCC 4.5.1 for i586-pc-gnu; Debian GNU/Hurd uses an older GCC and is not affected.) With this compiler, ‘data[-1]’ does not point to the return address. Thus, ‘switch_stac