This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: undefined references on GNU/Hurd
- From: "Alfred M. Szmidt" <ams at kemisten dot nu>
- To: "Alfred M. Szmidt" <ams at kemisten dot nu>
- Cc: roland at gnu dot org, libc-alpha at sources dot redhat dot com
- Date: Fri, 27 Jun 2003 08:11:03 +0200
- Subject: Re: undefined references on GNU/Hurd
- References: <E19VCBL-0001z4-00@lgh163a.kemisten.nu>
This patch makes stuff compile again (assuming that the two previous
patches have been applied) on GNU/Hurd. I have no idea if this is the
correct way of doing things, but it works. It reverts the 2003-04-29
to some degree...
2003-06-27 Alfred M. Szmidt <ams@kemisten.nu>
* include/libc-symbols.h (symbol_set_first_element): Always
use weak.
Index: include/libc-symbols.h
===================================================================
RCS file: /cvs/glibc/libc/include/libc-symbols.h,v
retrieving revision 1.57
diff -u -r1.57 libc-symbols.h
--- include/libc-symbols.h 16 Jun 2003 17:14:50 -0000 1.57
+++ include/libc-symbols.h 27 Jun 2003 06:08:42 -0000
@@ -362,11 +362,7 @@
# define symbol_set_declare(set) \
extern char const __start_##set[] __symbol_set_attribute; \
extern char const __stop_##set[] __symbol_set_attribute;
-# ifdef SHARED
-# define __symbol_set_attribute attribute_hidden
-# else
-# define __symbol_set_attribute __attribute__ ((weak))
-# endif
+# define __symbol_set_attribute __attribute__((weak))
/* Return a pointer (void *const *) to the first element of SET. */
# define symbol_set_first_element(set) ((void *const *) (&__start_##set))