This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PPC64 fix hidden def for __libc_stack_end


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]