1 /* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
23 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
24 # define SYS_SIGLIST __new_sys_siglist
25 # define SYS_SIGABBREV __new_sys_sigabbrev
27 # define SYS_SIGLIST _sys_siglist
28 # define SYS_SIGABBREV _sys_sigabbrev
31 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
32 asm (".data; .globl __old_sys_siglist; __old_sys_siglist:");
35 const char *const SYS_SIGLIST
[NSIG
] =
37 #define init_sig(sig, abbrev, desc) [sig] desc,
42 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
43 asm (".type __old_sys_siglist,@object;.size __old_sys_siglist,"
44 OLD_SIGLIST_SIZE_STR
"*" PTR_SIZE_STR
);
46 asm (".data; .globl __old_sys_sigabbrev; __old_sys_sigabbrev:");
49 const char *const SYS_SIGABBREV
[NSIG
] =
51 #define init_sig(sig, abbrev, desc) [sig] abbrev,
56 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
57 asm (".type __old_sys_sigabbrev,@object;.size __old_sys_sigabbrev,"
58 OLD_SIGLIST_SIZE_STR
"*" PTR_SIZE_STR
);
60 extern const char *const *__old_sys_siglist
;
61 extern const char *const *__old_sys_sigabbrev
;
63 strong_alias (__old_sys_siglist
, _old_sys_siglist
)
64 symbol_version (__old_sys_siglist
, _sys_siglist
, GLIBC_2
.0
);
65 symbol_version (_old_sys_siglist
, sys_siglist
, GLIBC_2
.0
);
66 symbol_version (__old_sys_sigabbrev
, sys_sigabbrev
, GLIBC_2
.0
);
68 strong_alias (__new_sys_siglist
, _new_sys_siglist
)
69 default_symbol_version (__new_sys_siglist
, _sys_siglist
, GLIBC_2
.1
);
70 default_symbol_version (_new_sys_siglist
, sys_siglist
, GLIBC_2
.1
);
71 default_symbol_version (__new_sys_sigabbrev
, sys_sigabbrev
, GLIBC_2
.1
);
73 weak_alias (_sys_siglist
, sys_siglist
)
74 weak_alias (_sys_sigabbrev
, sys_sigabbrev
)