1 /* Support macros for making weak and strong aliases for symbols,
2 and for using symbol sets and linker warnings with GNU ld.
3 Copyright (C) 1995-1998,2000-2003,2004,2005,2006
4 Free Software Foundation, Inc.
5 This file is part of the GNU C Library.
7 The GNU C Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 The GNU C Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with the GNU C Library; if not, write to the Free
19 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 #ifndef _LIBC_SYMBOLS_H
23 #define _LIBC_SYMBOLS_H 1
25 /* This is defined for the compilation of all C library code. features.h
26 tests this to avoid inclusion of stubs.h while compiling the library,
27 before stubs.h has been generated. Some library code that is shared
28 with other packages also tests this symbol to see if it is being
29 compiled as part of the C library. We must define this before including
30 config.h, because it makes some definitions conditional on whether libc
31 itself is being compiled, or just some generator program. */
35 /* This file's macros are included implicitly in the compilation of every
36 file in the C library by -imacros.
38 We include uClibc_arch_features.h which is defined by arch devs.
39 It should define for us the following symbols:
41 * HAVE_ASM_SET_DIRECTIVE if we have `.set B, A' instead of `A = B'.
42 * ASM_GLOBAL_DIRECTIVE with `.globl' or `.global'.
43 * ASM_TYPE_DIRECTIVE_PREFIX with `@' or `#' or whatever for .type,
44 or leave it undefined if there is no .type directive.
45 * HAVE_ELF if using ELF, which supports weak symbols using `.weak'.
46 * HAVE_ASM_WEAK_DIRECTIVE if we have weak symbols using `.weak'.
47 * HAVE_ASM_WEAKEXT_DIRECTIVE if we have weak symbols using `.weakext'.
51 #include <bits/uClibc_arch_features.h>
53 /* Enable declarations of GNU extensions, since we are compiling them. */
56 /* Prepare for the case that `__builtin_expect' is not available. */
57 #if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ < 96
58 # define __builtin_expect(x, expected_value) (x)
61 # define likely(x) __builtin_expect((!!(x)),1)
64 # define unlikely(x) __builtin_expect((!!(x)),0)
66 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
68 # define __cold __attribute__ ((__cold__))
71 # define __hot __attribute__ ((__hot__))
81 #ifndef __LINUX_COMPILER_H
82 # define __LINUX_COMPILER_H
85 # define __cast__(_to)
88 #define attribute_unused __attribute__ ((unused))
90 #if defined __GNUC__ || defined __ICC
91 # define attribute_noreturn __attribute__ ((__noreturn__))
93 # define attribute_noreturn
100 /* Indirect stringification. Doing two levels allows
101 * the parameter to be a macro itself.
103 #define __stringify_1(x) #x
104 #define __stringify(x) __stringify_1(x)
106 #ifdef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
107 # define HAVE_ASM_SET_DIRECTIVE
109 # undef HAVE_ASM_SET_DIRECTIVE
112 #ifdef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
113 # define ASM_GLOBAL_DIRECTIVE __UCLIBC_ASM_GLOBAL_DIRECTIVE__
115 # define ASM_GLOBAL_DIRECTIVE .global
118 #ifdef __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
119 # define HAVE_ASM_WEAK_DIRECTIVE
121 # undef HAVE_ASM_WEAK_DIRECTIVE
124 #ifdef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
125 # define HAVE_ASM_WEAKEXT_DIRECTIVE
127 # undef HAVE_ASM_WEAKEXT_DIRECTIVE
130 #ifdef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
131 # define HAVE_ASM_GLOBAL_DOT_NAME
133 # undef HAVE_ASM_GLOBAL_DOT_NAME
136 #ifdef __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__
137 # define HAVE_ASM_CFI_DIRECTIVES
139 # undef HAVE_ASM_CFI_DIRECTIVES
142 #if defined HAVE_ASM_WEAK_DIRECTIVE || defined HAVE_ASM_WEAKEXT_DIRECTIVE
143 # define HAVE_WEAK_SYMBOLS
147 #ifndef C_SYMBOL_NAME
148 # ifndef __UCLIBC_UNDERSCORES__
149 # define C_SYMBOL_NAME(name) name
151 # define C_SYMBOL_NAME(name) _##name
155 #ifdef __UCLIBC_ASM_LINE_SEP__
156 # define ASM_LINE_SEP __UCLIBC_ASM_LINE_SEP__
158 # define ASM_LINE_SEP ;
161 #ifdef HAVE_ASM_GLOBAL_DOT_NAME
162 # ifndef C_SYMBOL_DOT_NAME
163 # if defined __GNUC__ && defined __GNUC_MINOR__ \
164 && (__GNUC__ << 16) + __GNUC_MINOR__ >= (3 << 16) + 1
165 # define C_SYMBOL_DOT_NAME(name) .name
167 # define C_SYMBOL_DOT_NAME(name) .##name
172 #ifndef __ASSEMBLER__
173 /* GCC understands weak symbols and aliases; use its interface where
174 possible, instead of embedded assembly language. */
176 /* Define ALIASNAME as a strong alias for NAME. */
177 # define strong_alias(name, aliasname) _strong_alias(name, aliasname)
178 # define _strong_alias(name, aliasname) \
179 extern __typeof (name) aliasname __attribute__ ((alias (#name)));
181 /* This comes between the return type and function name in
182 a function definition to make that definition weak. */
183 # define weak_function __attribute__ ((weak))
184 # define weak_const_function __attribute__ ((weak, __const__))
186 # ifdef HAVE_WEAK_SYMBOLS
188 /* Define ALIASNAME as a weak alias for NAME.
189 If weak aliases are not available, this defines a strong alias. */
190 # define weak_alias(name, aliasname) _weak_alias (name, aliasname)
191 # define _weak_alias(name, aliasname) \
192 extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
194 /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */
195 # define weak_extern(symbol) _weak_extern (weak symbol)
196 # define _weak_extern(expr) _Pragma (#expr)
200 # define weak_alias(name, aliasname) strong_alias(name, aliasname)
201 # define weak_extern(symbol) /* Nothing. */
205 #else /* __ASSEMBLER__ */
207 # ifdef HAVE_ASM_SET_DIRECTIVE
208 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
209 # define strong_alias(original, alias) \
210 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
211 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original) ASM_LINE_SEP \
212 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
213 .set C_SYMBOL_DOT_NAME(alias),C_SYMBOL_DOT_NAME(original)
214 # define strong_data_alias(original, alias) \
215 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
216 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
218 # define strong_alias(original, alias) \
219 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
220 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
221 # define strong_data_alias(original, alias) strong_alias(original, alias)
224 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
225 # define strong_alias(original, alias) \
226 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
227 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original) ASM_LINE_SEP \
228 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
229 C_SYMBOL_DOT_NAME(alias) = C_SYMBOL_DOT_NAME(original)
230 # define strong_data_alias(original, alias) \
231 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
232 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
234 # define strong_alias(original, alias) \
235 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
236 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
237 # define strong_data_alias(original, alias) strong_alias(original, alias)
241 # ifdef HAVE_WEAK_SYMBOLS
242 # ifdef HAVE_ASM_WEAKEXT_DIRECTIVE
243 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
244 # define weak_alias(original, alias) \
245 .weakext C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original) ASM_LINE_SEP \
246 .weakext C_SYMBOL_DOT_NAME(alias),C_SYMBOL_DOT_NAME(original)
248 # define weak_alias(original, alias) \
249 .weakext C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
251 # define weak_extern(symbol) \
252 .weakext C_SYMBOL_NAME(symbol)
254 # else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
256 # ifdef HAVE_ASM_SET_DIRECTIVE
257 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
258 # define weak_alias(original, alias) \
259 .weak C_SYMBOL_NAME(alias) ASM_LINE_SEP \
260 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original) ASM_LINE_SEP \
261 .weak C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
262 .set C_SYMBOL_DOT_NAME(alias),C_SYMBOL_DOT_NAME(original)
264 # define weak_alias(original, alias) \
265 .weak C_SYMBOL_NAME(alias) ASM_LINE_SEP \
266 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
268 # else /* ! HAVE_ASM_SET_DIRECTIVE */
269 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
270 # define weak_alias(original, alias) \
271 .weak C_SYMBOL_NAME(alias) ASM_LINE_SEP \
272 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original) ASM_LINE_SEP \
273 .weak C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
274 C_SYMBOL_DOT_NAME(alias) = C_SYMBOL_DOT_NAME(original)
276 # define weak_alias(original, alias) \
277 .weak C_SYMBOL_NAME(alias) ASM_LINE_SEP \
278 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
281 # define weak_extern(symbol) \
282 .weak C_SYMBOL_NAME(symbol)
284 # endif /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
286 # else /* ! HAVE_WEAK_SYMBOLS */
288 # define weak_alias(original, alias) strong_alias(original, alias)
289 # define weak_extern(symbol) /* Nothing */
290 # endif /* ! HAVE_WEAK_SYMBOLS */
292 #endif /* __ASSEMBLER__ */
295 /* On some platforms we can make internal function calls (i.e., calls of
296 functions not exported) a bit faster by using a different calling
298 #ifndef internal_function
299 # define internal_function /* empty */
303 /* We want the .gnu.warning.SYMBOL section to be unallocated. */
304 #define __make_section_unallocated(section_string) \
305 __asm__ (".section " section_string "\n\t.previous");
308 /* Tacking on "\n#APP\n\t#" to the section name makes gcc put it's bogus
309 section attributes on what looks like a comment to the assembler. */
310 #ifdef __sparc__ /* HAVE_SECTION_QUOTES */
311 # define __sec_comment "\"\n#APP\n\t#\""
313 # define __sec_comment "\n#APP\n\t#"
317 /* When a reference to SYMBOL is encountered, the linker will emit a
318 warning message MSG. */
319 #define link_warning(symbol, msg) \
320 __make_section_unallocated (".gnu.warning." #symbol) \
321 static const char __evoke_link_warning_##symbol[] \
322 __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
325 /* Handling on non-exported internal names. We have to do this only
328 # define INTUSE(name) name##_internal
329 # define INTDEF(name) strong_alias (name, name##_internal)
330 # define INTVARDEF(name) _INTVARDEF (name, name##_internal)
331 # if defined HAVE_VISIBILITY_ATTRIBUTE
332 # define _INTVARDEF(name, aliasname) \
333 extern __typeof (name) aliasname __attribute__ ((alias (#name), \
334 visibility ("hidden")));
336 # define _INTVARDEF(name, aliasname) \
337 extern __typeof (name) aliasname __attribute__ ((alias (#name)));
339 # define INTDEF2(name, newname) strong_alias (name, newname##_internal)
340 # define INTVARDEF2(name, newname) _INTVARDEF (name, newname##_internal)
342 # define INTUSE(name) name
343 # define INTDEF(name)
344 # define INTVARDEF(name)
345 # define INTDEF2(name, newname)
346 # define INTVARDEF2(name, newname)
350 /* The following macros are used for PLT bypassing within libc.so
351 (and if needed other libraries similarly).
353 If calls to foo within libc.so should always go to foo defined in libc.so,
354 then in include/foo.h you add:
357 libc_hidden_proto(foo)
359 line and after the foo function definition:
371 libc_hidden_weak(foo)
373 Similarly for global data: if references to foo within libc.so
374 should always go to foo defined in libc.so, then in include/foo.h:
377 libc_hidden_proto(foo)
379 and after foo's definition:
381 int foo = INITIAL_FOO_VALUE;
382 libc_hidden_data_def(foo)
386 int foo = INITIAL_FOO_VALUE;
387 libc_hidden_data_weak(foo)
389 If foo is normally just an alias (strong or weak) to some other function,
390 you should use the normal strong_alias first, then add libc_hidden_def
396 strong_alias(baz, foo)
397 libc_hidden_weak(foo)
399 If the function should be internal to multiple objects, say ld.so and
400 libc.so, the best way is to use:
402 #if !defined NOT_IN_libc || defined IS_IN_rtld
406 in include/foo.h and the normal macros at all function definitions
407 depending on what DSO they belong to.
409 If versioned_symbol macro is used to define foo,
410 libc_hidden_ver macro should be used, as in:
412 int __real_foo(int __bar) {
415 versioned_symbol(libc, __real_foo, foo, GLIBC_2_1);
416 libc_hidden_ver(__real_foo, foo)
419 /* uClibc specific (the above comment was copied from glibc):
421 * when ppc64 will be supported, we need changes to support
422 * strong_data_alias (used by asm hidden_data_def)
424 * no versioning support, hidden[_data]_ver are noop
426 * hidden_def() in asm is _hidden_strong_alias (not strong_alias)
428 * libc_hidden_proto(foo) should be added after declaration
429 * in the header, or after extern foo... in all source files
430 * (this is discouraged).
431 * libc_hidden_def does not hide __GI_foo itself, although the name
432 * suggests it (hiding is done exclusively by libc_hidden_proto).
435 * The reasoning to have it after the header w/ foo's prototype is
436 * to get first the __REDIRECT from original header and then create
439 * Hunt for references which still go through PLT (example for x86):
440 * build shared lib, then disassemble it and search for <xxx@plt>:
441 * $ objdump -drx libuClibc-*.so >disasm.txt
442 * $ grep -F '@plt>:' disasm.txt
444 * In uclibc, malloc/free and related functions should be called
445 * through PLT (making it possible to use alternative malloc),
446 * and possibly some __pthread_xxx functions can be called through PLT
447 * (why?). The rest should not use PLT.
450 #if (defined __GNUC__ && defined __GNUC_MINOR__ \
451 && (( __GNUC__ >= 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4) \
453 # define attribute_hidden __attribute__ ((visibility ("hidden")))
454 # define __hidden_proto_hiddenattr(attrs...) __attribute__ ((visibility ("hidden"), ##attrs))
456 # define attribute_hidden
457 # define __hidden_proto_hiddenattr(attrs...)
460 #if /*!defined STATIC &&*/ !defined __BCC__
462 # ifndef __ASSEMBLER__
463 # define hidden_proto(name, attrs...) __hidden_proto(name, __GI_##name, ##attrs)
464 # define __hidden_proto(name, internal, attrs...) \
465 extern __typeof (name) name __asm__ (__hidden_asmname (#internal)) \
466 __hidden_proto_hiddenattr (attrs);
467 # define __hidden_asmname(name) __hidden_asmname1 (__USER_LABEL_PREFIX__, name)
468 # define __hidden_asmname1(prefix, name) __hidden_asmname2(prefix, name)
469 # define __hidden_asmname2(prefix, name) #prefix name
470 # define __hidden_ver1(local, internal, name) \
471 extern __typeof (name) __EI_##name __asm__(__hidden_asmname (#internal)); \
472 extern __typeof (name) __EI_##name __attribute__((alias (__hidden_asmname1 (,#local))))
473 # define hidden_ver(local, name) __hidden_ver1(local, __GI_##name, name);
474 # define hidden_data_ver(local, name) hidden_ver(local, name)
475 # define hidden_def(name) __hidden_ver1(__GI_##name, name, name);
476 # define hidden_data_def(name) hidden_def(name)
477 # define hidden_weak(name) \
478 __hidden_ver1(__GI_##name, name, name) __attribute__((weak));
479 # define hidden_data_weak(name) hidden_weak(name)
481 # else /* __ASSEMBLER__ */
483 # ifdef HAVE_ASM_SET_DIRECTIVE
484 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
485 # define _hidden_strong_alias(original, alias) \
486 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
487 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
488 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original) ASM_LINE_SEP \
489 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
490 .hidden C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
491 .set C_SYMBOL_DOT_NAME(alias),C_SYMBOL_DOT_NAME(original)
493 # define _hidden_strong_alias(original, alias) \
494 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
495 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
496 .set C_SYMBOL_NAME(alias),C_SYMBOL_NAME(original)
498 # else /* dont have .set directive */
499 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
500 # define _hidden_strong_alias(original, alias) \
501 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
502 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
503 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original) ASM_LINE_SEP \
504 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
505 .hidden C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
506 C_SYMBOL_DOT_NAME(alias) = C_SYMBOL_DOT_NAME(original)
508 # define _hidden_strong_alias(original, alias) \
509 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(alias) ASM_LINE_SEP \
510 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
511 C_SYMBOL_NAME(alias) = C_SYMBOL_NAME(original)
515 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
516 # define _hidden_weak_alias(original, alias) \
517 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
518 .hidden C_SYMBOL_DOT_NAME(alias) ASM_LINE_SEP \
519 weak_alias(original, alias)
521 # define _hidden_weak_alias(original, alias) \
522 .hidden C_SYMBOL_NAME(alias) ASM_LINE_SEP \
523 weak_alias(original, alias)
526 /* For assembly, we need to do the opposite of what we do in C:
527 in assembly gcc __REDIRECT stuff is not in place, so functions
528 are defined by its normal name and we need to create the
529 __GI_* alias to it, in C __REDIRECT causes the function definition
530 to use __GI_* name and we need to add alias to the real name.
531 There is no reason to use hidden_weak over hidden_def in assembly,
532 but we provide it for consistency with the C usage.
533 hidden_proto doesn't make sense for assembly but the equivalent
534 is to call via the HIDDEN_JUMPTARGET macro instead of JUMPTARGET. */
535 # define hidden_def(name) _hidden_strong_alias (name, __GI_##name)
536 # define hidden_weak(name) _hidden_weak_alias (name, __GI_##name)
537 # define hidden_ver(local, name) strong_alias (local, __GI_##name)
538 # define hidden_data_def(name) _hidden_strong_alias (name, __GI_##name)
539 # define hidden_data_weak(name) _hidden_weak_alias (name, __GI_##name)
540 # define hidden_data_ver(local, name) strong_data_alias (local, __GI_##name)
541 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
542 # define HIDDEN_JUMPTARGET(name) .__GI_##name
544 # define HIDDEN_JUMPTARGET(name) __GI_##name
546 # endif /* __ASSEMBLER__ */
548 #else /* not SHARED */
550 # ifndef __ASSEMBLER__
551 # define hidden_proto(name, attrs...)
553 # define HIDDEN_JUMPTARGET(name) name
554 # endif /* not __ASSEMBLER__ */
555 # define hidden_weak(name)
556 # define hidden_def(name)
557 # define hidden_ver(local, name)
558 # define hidden_data_weak(name)
559 # define hidden_data_def(name)
560 # define hidden_data_ver(local, name)
562 #endif /* SHARED / not SHARED */
565 /* uClibc does not support versioning yet. */
566 #define versioned_symbol(lib, local, symbol, version) /* weak_alias(local, symbol) */
568 #define hidden_ver(local, name) /* strong_alias(local, __GI_##name) */
569 #undef hidden_data_ver
570 #define hidden_data_ver(local, name) /* strong_alias(local,__GI_##name) */
572 #if !defined NOT_IN_libc
573 # define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
574 # define libc_hidden_def(name) hidden_def (name)
575 # define libc_hidden_weak(name) hidden_weak (name)
576 # define libc_hidden_ver(local, name) hidden_ver (local, name)
577 # define libc_hidden_data_def(name) hidden_data_def (name)
578 # define libc_hidden_data_weak(name) hidden_data_weak (name)
579 # define libc_hidden_data_ver(local, name) hidden_data_ver (local, name)
581 # define libc_hidden_proto(name, attrs...)
582 # define libc_hidden_def(name)
583 # define libc_hidden_weak(name)
584 # define libc_hidden_ver(local, name)
585 # define libc_hidden_data_def(name)
586 # define libc_hidden_data_weak(name)
587 # define libc_hidden_data_ver(local, name)
590 #if defined NOT_IN_libc && defined IS_IN_rtld
591 # define rtld_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
592 # define rtld_hidden_def(name) hidden_def (name)
593 # define rtld_hidden_weak(name) hidden_weak (name)
594 # define rtld_hidden_ver(local, name) hidden_ver (local, name)
595 # define rtld_hidden_data_def(name) hidden_data_def (name)
596 # define rtld_hidden_data_weak(name) hidden_data_weak (name)
597 # define rtld_hidden_data_ver(local, name) hidden_data_ver (local, name)
599 # define rtld_hidden_proto(name, attrs...)
600 # define rtld_hidden_def(name)
601 # define rtld_hidden_weak(name)
602 # define rtld_hidden_ver(local, name)
603 # define rtld_hidden_data_def(name)
604 # define rtld_hidden_data_weak(name)
605 # define rtld_hidden_data_ver(local, name)
608 #if defined NOT_IN_libc && defined IS_IN_libm
609 # define libm_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
610 # define libm_hidden_def(name) hidden_def (name)
611 # define libm_hidden_weak(name) hidden_weak (name)
612 # define libm_hidden_ver(local, name) hidden_ver (local, name)
613 # define libm_hidden_data_def(name) hidden_data_def (name)
614 # define libm_hidden_data_weak(name) hidden_data_weak (name)
615 # define libm_hidden_data_ver(local, name) hidden_data_ver (local, name)
617 # define libm_hidden_proto(name, attrs...)
618 # define libm_hidden_def(name)
619 # define libm_hidden_weak(name)
620 # define libm_hidden_ver(local, name)
621 # define libm_hidden_data_def(name)
622 # define libm_hidden_data_weak(name)
623 # define libm_hidden_data_ver(local, name)
626 #if defined NOT_IN_libc && defined IS_IN_libresolv
627 # define libresolv_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
628 # define libresolv_hidden_def(name) hidden_def (name)
629 # define libresolv_hidden_weak(name) hidden_weak (name)
630 # define libresolv_hidden_ver(local, name) hidden_ver (local, name)
631 # define libresolv_hidden_data_def(name) hidden_data_def (name)
632 # define libresolv_hidden_data_weak(name) hidden_data_weak (name)
633 # define libresolv_hidden_data_ver(local, name) hidden_data_ver (local, name)
635 # define libresolv_hidden_proto(name, attrs...)
636 # define libresolv_hidden_def(name)
637 # define libresolv_hidden_weak(name)
638 # define libresolv_hidden_ver(local, name)
639 # define libresolv_hidden_data_def(name)
640 # define libresolv_hidden_data_weak(name)
641 # define libresolv_hidden_data_ver(local, name)
644 #if defined NOT_IN_libc && defined IS_IN_librt
645 # define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
646 # define librt_hidden_def(name) hidden_def (name)
647 # define librt_hidden_weak(name) hidden_weak (name)
648 # define librt_hidden_ver(local, name) hidden_ver (local, name)
649 # define librt_hidden_data_def(name) hidden_data_def (name)
650 # define librt_hidden_data_weak(name) hidden_data_weak (name)
651 # define librt_hidden_data_ver(local, name) hidden_data_ver (local, name)
653 # define librt_hidden_proto(name, attrs...)
654 # define librt_hidden_def(name)
655 # define librt_hidden_weak(name)
656 # define librt_hidden_ver(local, name)
657 # define librt_hidden_data_def(name)
658 # define librt_hidden_data_weak(name)
659 # define librt_hidden_data_ver(local, name)
662 #if defined NOT_IN_libc && defined IS_IN_libdl
663 # define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
664 # define libdl_hidden_def(name) hidden_def (name)
665 # define libdl_hidden_weak(name) hidden_weak (name)
666 # define libdl_hidden_ver(local, name) hidden_ver (local, name)
667 # define libdl_hidden_data_def(name) hidden_data_def (name)
668 # define libdl_hidden_data_weak(name) hidden_data_weak (name)
669 # define libdl_hidden_data_ver(local, name) hidden_data_ver (local, name)
671 # define libdl_hidden_proto(name, attrs...)
672 # define libdl_hidden_def(name)
673 # define libdl_hidden_weak(name)
674 # define libdl_hidden_ver(local, name)
675 # define libdl_hidden_data_def(name)
676 # define libdl_hidden_data_weak(name)
677 # define libdl_hidden_data_ver(local, name)
680 #if defined NOT_IN_libc && defined IS_IN_libintl
681 # define libintl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
682 # define libintl_hidden_def(name) hidden_def (name)
683 # define libintl_hidden_weak(name) hidden_weak (name)
684 # define libintl_hidden_ver(local, name) hidden_ver (local, name)
685 # define libintl_hidden_data_def(name) hidden_data_def (name)
686 # define libintl_hidden_data_weak(name) hidden_data_weak (name)
687 # define libintl_hidden_data_ver(local, name) hidden_data_ver(local, name)
689 # define libintl_hidden_proto(name, attrs...)
690 # define libintl_hidden_def(name)
691 # define libintl_hidden_weak(name)
692 # define libintl_hidden_ver(local, name)
693 # define libintl_hidden_data_def(name)
694 # define libintl_hidden_data_weak(name)
695 # define libintl_hidden_data_ver(local, name)
698 #if defined NOT_IN_libc && defined IS_IN_libnsl
699 # define libnsl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
700 # define libnsl_hidden_def(name) hidden_def (name)
701 # define libnsl_hidden_weak(name) hidden_weak (name)
702 # define libnsl_hidden_ver(local, name) hidden_ver (local, name)
703 # define libnsl_hidden_data_def(name) hidden_data_def (name)
704 # define libnsl_hidden_data_weak(name) hidden_data_weak (name)
705 # define libnsl_hidden_data_ver(local, name) hidden_data_ver (local, name)
707 # define libnsl_hidden_proto(name, attrs...)
708 # define libnsl_hidden_def(name)
709 # define libnsl_hidden_weak(name)
710 # define libnsl_hidden_ver(local, name)
711 # define libnsl_hidden_data_def(name)
712 # define libnsl_hidden_data_weak(name)
713 # define libnsl_hidden_data_ver(local, name)
716 #if defined NOT_IN_libc && defined IS_IN_libutil
717 # define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
718 # define libutil_hidden_def(name) hidden_def (name)
719 # define libutil_hidden_weak(name) hidden_weak (name)
720 # define libutil_hidden_ver(local, name) hidden_ver (local, name)
721 # define libutil_hidden_data_def(name) hidden_data_def (name)
722 # define libutil_hidden_data_weak(name) hidden_data_weak (name)
723 # define libutil_hidden_data_ver(local, name) hidden_data_ver (local, name)
725 # define libutil_hidden_proto(name, attrs...)
726 # define libutil_hidden_def(name)
727 # define libutil_hidden_weak(name)
728 # define libutil_hidden_ver(local, name)
729 # define libutil_hidden_data_def(name)
730 # define libutil_hidden_data_weak(name)
731 # define libutil_hidden_data_ver(local, name)
734 #if defined NOT_IN_libc && defined IS_IN_libcrypt
735 # define libcrypt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
736 # define libcrypt_hidden_def(name) hidden_def (name)
737 # define libcrypt_hidden_weak(name) hidden_weak (name)
738 # define libcrypt_hidden_ver(local, name) hidden_ver (local, name)
739 # define libcrypt_hidden_data_def(name) hidden_data_def (name)
740 # define libcrypt_hidden_data_weak(name) hidden_data_weak (name)
741 # define libcrypt_hidden_data_ver(local, name) hidden_data_ver (local, name)
743 # define libcrypt_hidden_proto(name, attrs...)
744 # define libcrypt_hidden_def(name)
745 # define libcrypt_hidden_weak(name)
746 # define libcrypt_hidden_ver(local, name)
747 # define libcrypt_hidden_data_def(name)
748 # define libcrypt_hidden_data_weak(name)
749 # define libcrypt_hidden_data_ver(local, name)
752 #if defined NOT_IN_libc && defined IS_IN_libpthread
753 # define libpthread_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
754 # define libpthread_hidden_def(name) hidden_def (name)
755 # define libpthread_hidden_weak(name) hidden_weak (name)
756 # define libpthread_hidden_ver(local, name) hidden_ver (local, name)
757 # define libpthread_hidden_data_def(name) hidden_data_def (name)
758 # define libpthread_hidden_data_weak(name) hidden_data_weak (name)
759 # define libpthread_hidden_data_ver(local, name) hidden_data_ver (local, name)
761 # define libpthread_hidden_proto(name, attrs...)
762 # define libpthread_hidden_def(name)
763 # define libpthread_hidden_weak(name)
764 # define libpthread_hidden_ver(local, name)
765 # define libpthread_hidden_data_def(name)
766 # define libpthread_hidden_data_weak(name)
767 # define libpthread_hidden_data_ver(local, name)
770 #endif /* libc-symbols.h */