1 /* Copyright (C) 1991,92,93,95,96,97,98,99,2000,2001 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 Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 #ifndef _LIBC_SYMBOLS_H
20 #define _LIBC_SYMBOLS_H 1
22 #include <bits/uClibc_arch_features.h>
26 /* Enable declarations of GNU extensions, since we are compiling them. */
27 /* #define _GNU_SOURCE 1 */
29 /* Prepare for the case that `__builtin_expect' is not available. */
30 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
31 # define __builtin_expect(x, expected_value) (x)
34 # define likely(x) __builtin_expect((!!(x)),1)
37 # define unlikely(x) __builtin_expect((!!(x)),0)
39 #ifndef __LINUX_COMPILER_H
40 # define __LINUX_COMPILER_H
43 # define __cast__(_to)
46 #define attribute_unused __attribute__ ((unused))
49 # define attribute_noreturn __attribute__ ((__noreturn__))
51 # define attribute_noreturn
58 /* need this to unset defaults in libpthread for files that get added to libc */
63 #ifdef __UCLIBC_NO_UNDERSCORES__
64 # define NO_UNDERSCORES
66 # undef NO_UNDERSCORES
69 #ifdef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
70 # define HAVE_ASM_SET_DIRECTIVE
72 # undef HAVE_ASM_SET_DIRECTIVE
75 #ifdef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
76 # define ASM_GLOBAL_DIRECTIVE __UCLIBC_ASM_GLOBAL_DIRECTIVE__
78 # define ASM_GLOBAL_DIRECTIVE .global
81 #ifdef __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
82 # define HAVE_ASM_WEAK_DIRECTIVE
84 # undef HAVE_ASM_WEAK_DIRECTIVE
87 #ifdef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
88 # define HAVE_ASM_WEAKEXT_DIRECTIVE
90 # undef HAVE_ASM_WEAKEXT_DIRECTIVE
93 #ifdef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
94 # define HAVE_ASM_GLOBAL_DOT_NAME
96 # undef HAVE_ASM_GLOBAL_DOT_NAME
99 #if defined HAVE_ASM_WEAK_DIRECTIVE || defined HAVE_ASM_WEAKEXT_DIRECTIVE
100 # define HAVE_WEAK_SYMBOLS
104 #ifndef C_SYMBOL_NAME
105 # ifdef NO_UNDERSCORES
106 # define C_SYMBOL_NAME(name) name
108 # define C_SYMBOL_NAME(name) _##name
113 # define ASM_LINE_SEP ;
116 #ifdef HAVE_ASM_GLOBAL_DOT_NAME
117 # ifndef C_SYMBOL_DOT_NAME
118 # if defined __GNUC__ && defined __GNUC_MINOR__ \
119 && (__GNUC__ << 16) + __GNUC_MINOR__ >= (3 << 16) + 1
120 # define C_SYMBOL_DOT_NAME(name) .name
122 # define C_SYMBOL_DOT_NAME(name) .##name
127 #ifndef __ASSEMBLER__
128 /* GCC understands weak symbols and aliases; use its interface where
129 possible, instead of embedded assembly language. */
131 /* Define ALIASNAME as a strong alias for NAME. */
132 # define strong_alias(name, aliasname) _strong_alias(name, aliasname)
133 # define _strong_alias(name, aliasname) \
134 extern __typeof (name) aliasname __attribute__ ((alias (#name)));
136 # ifdef HAVE_WEAK_SYMBOLS
138 /* This comes between the return type and function name in
139 a function definition to make that definition weak. */
140 # define weak_function __attribute__ ((weak))
141 # define weak_const_function __attribute__ ((weak, __const__))
143 /* Define ALIASNAME as a weak alias for NAME.
144 If weak aliases are not available, this defines a strong alias. */
145 # define weak_alias(name, aliasname) _weak_alias (name, aliasname)
146 # define _weak_alias(name, aliasname) \
147 extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
149 /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */
150 # define weak_extern(symbol) _weak_extern (weak symbol)
151 # define _weak_extern(expr) _Pragma (#expr)
155 # define weak_function /* empty */
156 # define weak_const_function /* empty */
158 # define weak_alias(name, aliasname) strong_alias(name, aliasname)
159 # define weak_extern(symbol) /* Nothing. */
163 #else /* __ASSEMBLER__ */
165 # ifdef HAVE_ASM_SET_DIRECTIVE
166 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
167 # define strong_alias(original, alias) \
168 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
169 .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original) ASM_LINE_SEP \
170 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
171 .set C_SYMBOL_DOT_NAME (alias),C_SYMBOL_DOT_NAME (original)
172 # define strong_data_alias(original, alias) \
173 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
174 .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
176 # define strong_alias(original, alias) \
177 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
178 .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
179 # define strong_data_alias(original, alias) strong_alias(original, alias)
182 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
183 # define strong_alias(original, alias) \
184 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
185 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original) ASM_LINE_SEP \
186 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
187 C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
188 # define strong_data_alias(original, alias) \
189 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
190 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
192 # define strong_alias(original, alias) \
193 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
194 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
195 # define strong_data_alias(original, alias) strong_alias(original, alias)
199 # ifdef HAVE_WEAK_SYMBOLS
200 # ifdef HAVE_ASM_WEAKEXT_DIRECTIVE
201 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
202 # define weak_alias(original, alias) \
203 .weakext C_SYMBOL_NAME (alias), C_SYMBOL_NAME (original) ASM_LINE_SEP \
204 .weakext C_SYMBOL_DOT_NAME (alias), C_SYMBOL_DOT_NAME (original)
206 # define weak_alias(original, alias) \
207 .weakext C_SYMBOL_NAME (alias), C_SYMBOL_NAME (original)
209 # define weak_extern(symbol) \
210 .weakext C_SYMBOL_NAME (symbol)
212 # else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
214 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
215 # define weak_alias(original, alias) \
216 .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP \
217 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original) ASM_LINE_SEP \
218 .weak C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
219 C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
221 # define weak_alias(original, alias) \
222 .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP \
223 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
226 # define weak_extern(symbol) \
227 .weak C_SYMBOL_NAME (symbol)
229 # endif /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
231 # else /* ! HAVE_WEAK_SYMBOLS */
233 # define weak_alias(original, alias) strong_alias(original, alias)
234 # define weak_extern(symbol) /* Nothing */
235 # endif /* ! HAVE_WEAK_SYMBOLS */
237 #endif /* __ASSEMBLER__ */
239 /* On some platforms we can make internal function calls (i.e., calls of
240 functions not exported) a bit faster by using a different calling
242 #ifndef internal_function
243 # define internal_function /* empty */
246 /* We want the .gnu.warning.SYMBOL section to be unallocated. */
247 #define __make_section_unallocated(section_string) \
248 asm (".section " section_string "\n\t.previous");
250 /* Tacking on "\n\t#" to the section name makes gcc put it's bogus
251 section attributes on what looks like a comment to the assembler. */
252 #ifdef __sparc__ //HAVE_SECTION_QUOTES
253 # define __sec_comment "\"\n\t#\""
255 # define __sec_comment "\n\t#"
258 /* When a reference to SYMBOL is encountered, the linker will emit a
259 warning message MSG. */
261 # define link_warning(symbol, msg)
263 # define link_warning(symbol, msg) \
264 __make_section_unallocated (".gnu.warning." #symbol) \
265 static const char __evoke_link_warning_##symbol[] \
266 __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
270 /* A canned warning for sysdeps/stub functions. */
271 #define stub_warning(name) \
272 __make_section_unallocated (".gnu.uClibc-stub." #name) \
273 link_warning (name, \
274 "warning: " #name " is not implemented and will always fail")
276 /* Handling on non-exported internal names. We have to do this only
279 # define INTUSE(name) name##_internal
280 # define INTDEF(name) strong_alias (name, name##_internal)
281 # define INTVARDEF(name) \
282 _INTVARDEF (name, name##_internal)
283 # if defined HAVE_VISIBILITY_ATTRIBUTE
284 # define _INTVARDEF(name, aliasname) \
285 extern __typeof (name) aliasname __attribute__ ((alias (#name), \
286 visibility ("hidden")));
288 # define _INTVARDEF(name, aliasname) \
289 extern __typeof (name) aliasname __attribute__ ((alias (#name)));
291 # define INTDEF2(name, newname) strong_alias (name, newname##_internal)
292 # define INTVARDEF2(name, newname) _INTVARDEF (name, newname##_internal)
294 # define INTUSE(name) name
295 # define INTDEF(name)
296 # define INTVARDEF(name)
297 # define INTDEF2(name, newname)
298 # define INTVARDEF2(name, newname)
301 /* The following macros are used for PLT bypassing within libc.so
302 (and if needed other libraries similarly).
303 First of all, you need to have the function prototyped somewhere,
308 If calls to foo within libc.so should always go to foo defined in libc.so,
309 then in include/foo.h you add:
311 libc_hidden_proto (foo)
313 line and after the foo function definition:
319 libc_hidden_def (foo)
327 libc_hidden_weak (foo)
329 Simularly for global data. If references to foo within libc.so should
330 always go to foo defined in libc.so, then in include/foo.h you add:
332 libc_hidden_proto (foo)
334 line and after foo's definition:
336 int foo = INITIAL_FOO_VALUE;
337 libc_hidden_data_def (foo)
341 int foo = INITIAL_FOO_VALUE;
342 libc_hidden_data_weak (foo)
344 If foo is normally just an alias (strong or weak) of some other function,
345 you should use the normal strong_alias first, then add libc_hidden_def
352 strong_alias (baz, foo)
353 libc_hidden_weak (foo)
355 If the function should be internal to multiple objects, say ld.so and
356 libc.so, the best way is to use:
358 #if !defined NOT_IN_libc || defined IS_IN_rtld
362 in include/foo.h and the normal macros at all function definitions
363 depending on what DSO they belong to.
365 If versioned_symbol macro is used to define foo,
366 libc_hidden_ver macro should be used, as in:
368 int __real_foo (int __bar)
372 versioned_symbol (libc, __real_foo, foo, GLIBC_2_1);
373 libc_hidden_ver (__real_foo, foo) */
375 /* uClibc specific (the above comment was copied from glibc):
376 * a. when ppc64 will be supported, we need changes to support:
377 * strong_data_alias (used by asm hidden_data_def)
378 * b. libc_hidden_proto(foo) should be added after the header having foo's prototype
379 * or after extern foo... to all source files that should use the internal version
380 * of foo within libc, even to the file defining foo itself, libc_hidden_def does
381 * not hide __GI_foo itself, although the name suggests it (hiding is done exclusively
382 * by libc_hidden_proto). The reasoning to have it after the header w/ foo's prototype is
383 * to get first the __REDIRECT from original header and then create the __GI_foo alias
384 * c. no versioning support, hidden[_data]_ver are noop
385 * d. hidden_strong_alias() added, and hidden_def() in asm is hidden_strong_alias (not strong_alias) */
387 /* Arrange to hide uClibc internals */
388 #if defined __GNUC__ && defined __GNUC_MINOR__ && \
389 ( __GNUC__ >= 3 && __GNUC_MINOR__ >= 3 ) || __GNUC__ >= 4
390 # define attribute_hidden __attribute__ ((visibility ("hidden")))
391 # define __hidden_proto_hiddenattr(attrs...) __attribute__ ((visibility ("hidden"), ##attrs))
393 # define attribute_hidden
394 # define __hidden_proto_hiddenattr(attrs...)
398 # ifndef __ASSEMBLER__
399 # define hidden_strong_alias(name, aliasname) _hidden_strong_alias(name, aliasname)
400 # define _hidden_strong_alias(name, aliasname) \
401 extern __typeof (name) aliasname __attribute__ ((alias (#name))) attribute_hidden;
403 # define hidden_proto(name, attrs...) __hidden_proto (name, __GI_##name, ##attrs)
404 # define __hidden_proto(name, internal, attrs...) \
405 extern __typeof (name) name __asm__ (__hidden_asmname (#internal)) \
406 __hidden_proto_hiddenattr (attrs);
407 # define __hidden_asmname(name) __hidden_asmname1 (__USER_LABEL_PREFIX__, name)
408 # define __hidden_asmname1(prefix, name) __hidden_asmname2(prefix, name)
409 # define __hidden_asmname2(prefix, name) #prefix name
410 # define __hidden_ver1(local, internal, name) \
411 extern __typeof (name) __EI_##name __asm__(__hidden_asmname (#internal)); \
412 extern __typeof (name) __EI_##name __attribute__((alias (__hidden_asmname1 (,#local))))
413 # define hidden_def(name) __hidden_ver1(__GI_##name, name, name);
414 # define hidden_data_def(name) hidden_def(name)
415 # define hidden_weak(name) __hidden_ver1(__GI_##name, name, name) __attribute__((weak));
416 # define hidden_data_weak(name) hidden_weak(name)
418 # else /* __ASSEMBLER__ */
419 # ifdef HAVE_ASM_SET_DIRECTIVE
420 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
421 # define hidden_strong_alias(original, alias) \
422 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
423 .hidden C_SYMBOL_NAME (alias) ASM_LINE_SEP \
424 .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original) ASM_LINE_SEP \
425 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
426 .hidden C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
427 .set C_SYMBOL_DOT_NAME (alias),C_SYMBOL_DOT_NAME (original)
429 # define hidden_strong_alias(original, alias) \
430 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
431 .hidden C_SYMBOL_NAME (alias) ASM_LINE_SEP \
432 .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
435 # ifdef HAVE_ASM_GLOBAL_DOT_NAME
436 # define hidden_strong_alias(original, alias) \
437 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
438 .hidden C_SYMBOL_NAME (alias) ASM_LINE_SEP \
439 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original) ASM_LINE_SEP \
440 ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
441 .hidden C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP \
442 C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
444 # define hidden_strong_alias(original, alias) \
445 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP \
446 .hidden C_SYMBOL_NAME (alias) ASM_LINE_SEP \
447 C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
451 /* For assembly, we need to do the opposite of what we do in C:
452 in assembly gcc __REDIRECT stuff is not in place, so functions
453 are defined by its normal name and we need to create the
454 __GI_* alias to it, in C __REDIRECT causes the function definition
455 to use __GI_* name and we need to add alias to the real name.
456 There is no reason to use hidden_weak over hidden_def in assembly,
457 but we provide it for consistency with the C usage.
458 hidden_proto doesn't make sense for assembly but the equivalent
459 is to call via the HIDDEN_JUMPTARGET macro instead of JUMPTARGET. */
460 # define hidden_def(name) hidden_strong_alias (name, __GI_##name)
461 # define hidden_data_def(name) hidden_strong_alias (name, __GI_##name)
462 # define hidden_weak(name) hidden_def (name)
463 # define hidden_data_weak(name) hidden_data_def (name)
464 # define HIDDEN_JUMPTARGET(name) __GI_##name
465 # endif /* __ASSEMBLER__ */
467 # define hidden_strong_alias(name, aliasname)
469 # ifndef __ASSEMBLER__
470 # define hidden_proto(name, attrs...)
472 # define HIDDEN_JUMPTARGET(name) name
474 # define hidden_def(name)
475 # define hidden_data_def(name)
476 # define hidden_weak(name)
477 # define hidden_data_weak(name)
480 /* uClibc does not support versioning yet. */
481 #define versioned_symbol(lib, local, symbol, version) /* weak_alias(local, symbol) */
482 #define hidden_ver(local, name) /* strong_alias(local, __GI_##name) */
483 #define hidden_data_ver(local, name) /* strong_alias(local,__GI_##name) */
485 #if !defined NOT_IN_libc
486 # define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
487 # define libc_hidden_def(name) hidden_def (name)
488 # define libc_hidden_weak(name) hidden_weak (name)
489 # define libc_hidden_ver(local, name) hidden_ver (local, name)
490 # define libc_hidden_data_def(name) hidden_data_def (name)
491 # define libc_hidden_data_weak(name) hidden_data_weak (name)
492 # define libc_hidden_data_ver(local, name) hidden_data_ver (local, name)
494 # define libc_hidden_proto(name, attrs...)
495 # define libc_hidden_def(name)
496 # define libc_hidden_weak(name)
497 # define libc_hidden_ver(local, name)
498 # define libc_hidden_data_def(name)
499 # define libc_hidden_data_weak(name)
500 # define libc_hidden_data_ver(local, name)
503 #if defined NOT_IN_libc && defined IS_IN_rtld
504 # define rtld_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
505 # define rtld_hidden_def(name) hidden_def (name)
506 # define rtld_hidden_weak(name) hidden_weak (name)
507 # define rtld_hidden_ver(local, name) hidden_ver (local, name)
508 # define rtld_hidden_data_def(name) hidden_data_def (name)
509 # define rtld_hidden_data_weak(name) hidden_data_weak (name)
510 # define rtld_hidden_data_ver(local, name) hidden_data_ver (local, name)
512 # define rtld_hidden_proto(name, attrs...)
513 # define rtld_hidden_def(name)
514 # define rtld_hidden_weak(name)
515 # define rtld_hidden_ver(local, name)
516 # define rtld_hidden_data_def(name)
517 # define rtld_hidden_data_weak(name)
518 # define rtld_hidden_data_ver(local, name)
521 #if defined NOT_IN_libc && defined IS_IN_libm
522 # define libm_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
523 # define libm_hidden_def(name) hidden_def (name)
524 # define libm_hidden_weak(name) hidden_weak (name)
525 # define libm_hidden_ver(local, name) hidden_ver (local, name)
526 # define libm_hidden_data_def(name) hidden_data_def (name)
527 # define libm_hidden_data_weak(name) hidden_data_weak (name)
528 # define libm_hidden_data_ver(local, name) hidden_data_ver (local, name)
530 # define libm_hidden_proto(name, attrs...)
531 # define libm_hidden_def(name)
532 # define libm_hidden_weak(name)
533 # define libm_hidden_ver(local, name)
534 # define libm_hidden_data_def(name)
535 # define libm_hidden_data_weak(name)
536 # define libm_hidden_data_ver(local, name)
539 #if defined NOT_IN_libc && defined IS_IN_libresolv
540 # define libresolv_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
541 # define libresolv_hidden_def(name) hidden_def (name)
542 # define libresolv_hidden_weak(name) hidden_weak (name)
543 # define libresolv_hidden_ver(local, name) hidden_ver (local, name)
544 # define libresolv_hidden_data_def(name) hidden_data_def (name)
545 # define libresolv_hidden_data_weak(name) hidden_data_weak (name)
546 # define libresolv_hidden_data_ver(local, name) hidden_data_ver (local, name)
548 # define libresolv_hidden_proto(name, attrs...)
549 # define libresolv_hidden_def(name)
550 # define libresolv_hidden_weak(name)
551 # define libresolv_hidden_ver(local, name)
552 # define libresolv_hidden_data_def(name)
553 # define libresolv_hidden_data_weak(name)
554 # define libresolv_hidden_data_ver(local, name)
557 #if defined NOT_IN_libc && defined IS_IN_librt
558 # define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
559 # define librt_hidden_def(name) hidden_def (name)
560 # define librt_hidden_weak(name) hidden_weak (name)
561 # define librt_hidden_ver(local, name) hidden_ver (local, name)
562 # define librt_hidden_data_def(name) hidden_data_def (name)
563 # define librt_hidden_data_weak(name) hidden_data_weak (name)
564 # define librt_hidden_data_ver(local, name) hidden_data_ver (local, name)
566 # define librt_hidden_proto(name, attrs...)
567 # define librt_hidden_def(name)
568 # define librt_hidden_weak(name)
569 # define librt_hidden_ver(local, name)
570 # define librt_hidden_data_def(name)
571 # define librt_hidden_data_weak(name)
572 # define librt_hidden_data_ver(local, name)
575 #if defined NOT_IN_libc && defined IS_IN_libdl
576 # define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
577 # define libdl_hidden_def(name) hidden_def (name)
578 # define libdl_hidden_weak(name) hidden_weak (name)
579 # define libdl_hidden_ver(local, name) hidden_ver (local, name)
580 # define libdl_hidden_data_def(name) hidden_data_def (name)
581 # define libdl_hidden_data_weak(name) hidden_data_weak (name)
582 # define libdl_hidden_data_ver(local, name) hidden_data_ver (local, name)
584 # define libdl_hidden_proto(name, attrs...)
585 # define libdl_hidden_def(name)
586 # define libdl_hidden_weak(name)
587 # define libdl_hidden_ver(local, name)
588 # define libdl_hidden_data_def(name)
589 # define libdl_hidden_data_weak(name)
590 # define libdl_hidden_data_ver(local, name)
593 #if defined NOT_IN_libc && defined IS_IN_libintl
594 # define libintl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
595 # define libintl_hidden_def(name) hidden_def (name)
596 # define libintl_hidden_weak(name) hidden_weak (name)
597 # define libintl_hidden_ver(local, name) hidden_ver (local, name)
598 # define libintl_hidden_data_def(name) hidden_data_def (name)
599 # define libintl_hidden_data_weak(name) hidden_data_weak (name)
600 # define libintl_hidden_data_ver(local, name) hidden_data_ver(local, name)
602 # define libintl_hidden_proto(name, attrs...)
603 # define libintl_hidden_def(name)
604 # define libintl_hidden_weak(name)
605 # define libintl_hidden_ver(local, name)
606 # define libintl_hidden_data_def(name)
607 # define libintl_hidden_data_weak(name)
608 # define libintl_hidden_data_ver(local, name)
611 #if defined NOT_IN_libc && defined IS_IN_libnsl
612 # define libnsl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
613 # define libnsl_hidden_def(name) hidden_def (name)
614 # define libnsl_hidden_weak(name) hidden_weak (name)
615 # define libnsl_hidden_ver(local, name) hidden_ver (local, name)
616 # define libnsl_hidden_data_def(name) hidden_data_def (name)
617 # define libnsl_hidden_data_weak(name) hidden_data_weak (name)
618 # define libnsl_hidden_data_ver(local, name) hidden_data_ver (local, name)
620 # define libnsl_hidden_proto(name, attrs...)
621 # define libnsl_hidden_def(name)
622 # define libnsl_hidden_weak(name)
623 # define libnsl_hidden_ver(local, name)
624 # define libnsl_hidden_data_def(name)
625 # define libnsl_hidden_data_weak(name)
626 # define libnsl_hidden_data_ver(local, name)
629 #if defined NOT_IN_libc && defined IS_IN_libutil
630 # define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
631 # define libutil_hidden_def(name) hidden_def (name)
632 # define libutil_hidden_weak(name) hidden_weak (name)
633 # define libutil_hidden_ver(local, name) hidden_ver (local, name)
634 # define libutil_hidden_data_def(name) hidden_data_def (name)
635 # define libutil_hidden_data_weak(name) hidden_data_weak (name)
636 # define libutil_hidden_data_ver(local, name) hidden_data_ver (local, name)
638 # define libutil_hidden_proto(name, attrs...)
639 # define libutil_hidden_def(name)
640 # define libutil_hidden_weak(name)
641 # define libutil_hidden_ver(local, name)
642 # define libutil_hidden_data_def(name)
643 # define libutil_hidden_data_weak(name)
644 # define libutil_hidden_data_ver(local, name)
647 #if defined NOT_IN_libc && defined IS_IN_libcrypt
648 # define libcrypt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
649 # define libcrypt_hidden_def(name) hidden_def (name)
650 # define libcrypt_hidden_weak(name) hidden_weak (name)
651 # define libcrypt_hidden_ver(local, name) hidden_ver (local, name)
652 # define libcrypt_hidden_data_def(name) hidden_data_def (name)
653 # define libcrypt_hidden_data_weak(name) hidden_data_weak (name)
654 # define libcrypt_hidden_data_ver(local, name) hidden_data_ver (local, name)
656 # define libcrypt_hidden_proto(name, attrs...)
657 # define libcrypt_hidden_def(name)
658 # define libcrypt_hidden_weak(name)
659 # define libcrypt_hidden_ver(local, name)
660 # define libcrypt_hidden_data_def(name)
661 # define libcrypt_hidden_data_weak(name)
662 # define libcrypt_hidden_data_ver(local, name)
665 #if defined NOT_IN_libc && defined IS_IN_libpthread
666 # define libpthread_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
667 # define libpthread_hidden_def(name) hidden_def (name)
668 # define libpthread_hidden_weak(name) hidden_weak (name)
669 # define libpthread_hidden_ver(local, name) hidden_ver (local, name)
670 # define libpthread_hidden_data_def(name) hidden_data_def (name)
671 # define libpthread_hidden_data_weak(name) hidden_data_weak (name)
672 # define libpthread_hidden_data_ver(local, name) hidden_data_ver (local, name)
674 # define libpthread_hidden_proto(name, attrs...)
675 # define libpthread_hidden_def(name)
676 # define libpthread_hidden_weak(name)
677 # define libpthread_hidden_ver(local, name)
678 # define libpthread_hidden_data_def(name)
679 # define libpthread_hidden_data_weak(name)
680 # define libpthread_hidden_data_ver(local, name)
683 #endif /* _LIBC_SYMBOLS_H */