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]

Re: undefined references on GNU/Hurd


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))


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