aboutsummaryrefslogtreecommitdiff
path: root/libc-symbols.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-09 00:01:05 +0000
committerRoland McGrath <roland@gnu.org>1995-09-09 00:01:05 +0000
commitf87cd5a2293c048a211709b1bfa737d3f65bd9b4 (patch)
tree1c5b015e15a207c34360d0e2391b000f02b52a92 /libc-symbols.h
parentc64908b01f20625d9da5f8809678ee91cdd3f460 (diff)
downloadglibc-f87cd5a2293c048a211709b1bfa737d3f65bd9b4.zip
glibc-f87cd5a2293c048a211709b1bfa737d3f65bd9b4.tar.gz
glibc-f87cd5a2293c048a211709b1bfa737d3f65bd9b4.tar.bz2
* libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
symbols weak.
Diffstat (limited to 'libc-symbols.h')
-rw-r--r--libc-symbols.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc-symbols.h b/libc-symbols.h
index 8030abb..5eefbed 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)