From 5c82e15e8646cd7d229bcd8287d01875e12df0b3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 15 Mar 2002 03:16:52 +0000 Subject: Update. 2002-03-14 Ulrich Drepper * elf/dl-minimal.c (malloc): Declare _end as hidden. (__errno_location): New function. Declare errno as hidden. * elf/rtld.c (_dl_argc): Define as hidden. (_dl_skip_args): Define as hidden. (_begin, _end): Declare as hidden. * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden. * sysdeps/generic/entry.h (_start): Declare as hidden. * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden. * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare _dl_runtime_resolve and _dl_runtime_profile as hidden. (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini. --- sysdeps/generic/dl-sysdep.c | 2 +- sysdeps/generic/entry.h | 2 +- sysdeps/generic/ldsodefs.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index 45980ee..36b1150 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -39,7 +39,7 @@ #include extern char **_environ; -extern void _end; +extern void _end attribute_hidden; /* Protect SUID program against misuse of file descriptors. */ extern void __libc_check_standard_fds (void); diff --git a/sysdeps/generic/entry.h b/sysdeps/generic/entry.h index 2f17ce8..16d3e30 100644 --- a/sysdeps/generic/entry.h +++ b/sysdeps/generic/entry.h @@ -1,5 +1,5 @@ #ifndef __ASSEMBLY__ -extern void _start (void); +extern void _start (void) attribute_hidden; #endif #define ENTRY_POINT _start diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 4aa5621..d2dd3e6 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -392,7 +392,7 @@ extern struct rtld_global _rtld_local __rtld_local_attribute__; #undef EXTERN /* Parameters passed to the dynamic linker. */ -extern int _dl_argc; +extern int _dl_argc attribute_hidden; extern char **_dl_argv; #ifdef _RTLD_LOCAL extern char **_dl_argv_internal attribute_hidden; -- cgit v1.1