This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC64 fix hidden def for __libc_stack_end
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com, Dwayne McConnell <dgm69 at us dot ibm dot com>, Segher Boessenkoof <segher at kernel dot crashing>
- Date: Wed, 14 Jan 2004 13:12:25 -0600
- Subject: [PATCH] PPC64 fix hidden def for __libc_stack_end
- Organization: IBM LTC
- Reply-to: sjmunroe at vnet dot ibm dot com
We need to use *_hidden_data_def instead of *_hidden_def for data items
so that we don't attempt to generate extraneous '.'ed symbols on
powerpc64. Using rtld-hidden-def for __libc_stack_end causes the
powerpc64 build to fail because of unresolved .__GI___libc_stack_end
symbol. The attached patch updates sysdeps/generic/dl-sysdep.c to use
rtld_hidden_data_def which does not generate the '.'ed form.
2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
rtld_hidden_data_def.
diff -urN libc23-cvstip-20040114/sysdeps/generic/dl-sysdep.c libc23/sysdeps/generic/dl-sysdep.c
--- libc23-cvstip-20040114/sysdeps/generic/dl-sysdep.c 2004-01-13 19:14:38.000000000 -0600
+++ libc23/sysdeps/generic/dl-sysdep.c 2004-01-14 12:51:45.000000000 -0600
@@ -54,7 +54,7 @@
of init-first. */
/* This variable contains the lowest stack address ever used. */
void *__libc_stack_end __attribute__ ((section (".data.rel.ro")));
-rtld_hidden_def(__libc_stack_end)
+rtld_hidden_data_def(__libc_stack_end)
static ElfW(auxv_t) *_dl_auxv;
#ifndef DL_FIND_ARG_COMPONENTS