From c5598d4721655c8654e3f419d12b671e2a92c0ce Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 3 Aug 2002 12:09:37 +0000 Subject: * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__]. * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or libc_hidden_weak for every system call symbol defined. * include/time.h: Use libc_hidden_proto for time, asctime, mktime, timelocal, localtime, strftime. * time/asctime.c: Add libc_hidden_def. * time/mktime.c: Likewise. * time/localtime.c: Likewise. * time/strftime.c: Likewise. * time/strptime.c: Likewise. * sysdeps/generic/time.c: Likewise. * sysdeps/unix/time.c: Likewise. * sysdeps/unix/sysv/i386/time.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise. * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton. inet_makeaddr, inet_netof, inet_addr, __inet_addr. * resolv/inet_ntop.c: Likewise. * resolv/inet_pton.c: Likewise. * inet/inet_mkadr.c: Add libc_hidden_def. * inet/inet_netof.c: Likewise. * resolv/inet_addr.c: Likewise. * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE' clauses from conditionals for now. Will have to be fixed later for older compilers. --- sysdeps/unix/make-syscalls.sh | 7 ++++++- sysdeps/unix/sysv/i386/time.S | 3 ++- sysdeps/unix/sysv/linux/x86_64/time.S | 3 ++- sysdeps/unix/time.c | 3 ++- 4 files changed, 12 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh index 10d6992..d8a3210 100644 --- a/sysdeps/unix/make-syscalls.sh +++ b/sysdeps/unix/make-syscalls.sh @@ -130,7 +130,8 @@ shared-only-routines += $file (echo '#include '; \\ echo 'PSEUDO ($strong, $syscall, $nargs)'; \\ echo ' ret'; \\ - echo 'PSEUDO_END($strong)'; \\" + echo 'PSEUDO_END($strong)'; \\ + echo 'libc_hidden_def ($strong)'; \\" # Append any weak aliases or versions defined for this syscall function. @@ -168,6 +169,7 @@ shared-only-routines += $file ;; *) echo " echo 'weak_alias ($strong, $name)'; \\" + echo " echo 'libc_hidden_weak ($name)'; \\" ;; esac done @@ -275,9 +277,12 @@ shared-only-routines += $file echo " echo '} \\'; \\" + echo " echo 'libc_hidden_def (BP_SYM ($strong)) \\'; \\" + # generate thunk aliases for name in $nv_weak; do echo " echo 'weak_alias (BP_SYM ($strong), BP_SYM ($name)) \\'; \\" + echo " echo 'libc_hidden_weak (BP_SYM ($name)) \\'; \\" done # wrap up diff --git a/sysdeps/unix/sysv/i386/time.S b/sysdeps/unix/sysv/i386/time.S index 369065f..1d5395a 100644 --- a/sysdeps/unix/sysv/i386/time.S +++ b/sysdeps/unix/sysv/i386/time.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,96,97,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,3 +27,4 @@ SYSCALL (time, 1) L(null): ret PSEUDO_END (time) +libc_hidden_def (time) diff --git a/sysdeps/unix/sysv/linux/x86_64/time.S b/sysdeps/unix/sysv/linux/x86_64/time.S index ecd9393..78efee1 100644 --- a/sysdeps/unix/sysv/linux/x86_64/time.S +++ b/sysdeps/unix/sysv/linux/x86_64/time.S @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 2001,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -40,3 +40,4 @@ L(pseudo_end): add $0x8, %rsp ret PSEUDO_END(time) +libc_hidden_def (time) diff --git a/sysdeps/unix/time.c b/sysdeps/unix/time.c index 1444bd0..f31ee96 100644 --- a/sysdeps/unix/time.c +++ b/sysdeps/unix/time.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,97,2001,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -39,3 +39,4 @@ time (t) *t = result; return result; } +libc_hidden_def (time) -- cgit v1.1