From f87cd5a2293c048a211709b1bfa737d3f65bd9b4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 9 Sep 1995 00:01:05 +0000 Subject: [PATCH] * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the symbols weak. --- ChangeLog | 3 +++ libc-symbols.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 77dfa9d494..b194b5a45b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Fri Sep 8 16:25:22 1995 Roland McGrath + * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the + symbols weak. + * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1, not empty. diff --git a/libc-symbols.h b/libc-symbols.h index 8030abb089..5eefbed04c 100644 --- a/libc-symbols.h +++ b/libc-symbols.h @@ -214,7 +214,8 @@ Cambridge, MA 02139, USA. */ /* Declare SET for use in this module, if defined in another module. */ #define symbol_set_declare(set) \ - extern void *const __start_##set, *const __stop_##set; + extern void *const __start_##set __attribute__ ((__weak__)); \ + extern void *const __stop_##set __attribute__ ((__weak__)); /* Return a pointer (void *const *) to the first element of SET. */ #define symbol_set_first_element(set) (&__start_##set) -- 2.43.5