|
|
@@ -941,6 +941,7 @@ ptr_t GC_get_stack_base()
|
|
|
/* since the correct value of __libc_stack_end never */
|
|
|
/* becomes visible to us. The second test works around */
|
|
|
/* this. */
|
|
|
+#if USE_LIBC_PRIVATE_SYMBOLS
|
|
|
if (0 != &__libc_stack_end && 0 != __libc_stack_end ) {
|
|
|
# ifdef IA64
|
|
|
/* Some versions of glibc set the address 16 bytes too */
|
|
|
@@ -953,6 +954,7 @@ ptr_t GC_get_stack_base()
|
|
|
return __libc_stack_end;
|
|
|
# endif
|
|
|
}
|
|
|
+#endif
|
|
|
f = open("/proc/self/stat", O_RDONLY);
|
|
|
if (f < 0 || STAT_READ(f, stat_buf, STAT_BUF_SIZE) < 2 * STAT_SKIP) {
|
|
|
ABORT("Couldn't read /proc/self/stat");
|