[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stack base (was Re: someone could port libgc)



> Doesn't it store it in __libc_stack_end?  See
> libc/sysdeps/generic/libc-start.c .  This program
> 
>     extern void* __libc_stack_end;
>     main () { printf ("%p\n", __libc_stack_end); }
> 
> prints 0xbffffd1c on Linux/i386 and 0x101abfc on Hurd.

Well, so it does.  How about that.  This is in the exported version map
though I don't know how wise it is to use it, since it is an internal
symbol and is only made visible in the version map for implementation reasons.


Reply to: