OLD | NEW |
1 /* This file is only used if enabled in the build system, in which case it is | 1 /* This file is only used if enabled in the build system, in which case it is |
2 * included automatically via command line options. It is not included | 2 * included automatically via command line options. It is not included |
3 * explicitly by any source files or other headers. Its purpose is to | 3 * explicitly by any source files or other headers. Its purpose is to |
4 * override default visibilities to reduce the size and performance costs | 4 * override default visibilities to reduce the size and performance costs |
5 * of position-independent code. */ | 5 * of position-independent code. */ |
6 | 6 |
7 #if !defined(CRT) && !defined(__ASSEMBLER__) | 7 #if !defined(CRT) && !defined(__ASSEMBLER__) |
8 | 8 |
9 /* Conceptually, all symbols should be protected, but some toolchains | 9 /* Conceptually, all symbols should be protected, but some toolchains |
10 * fail to support copy relocations for protected data, so exclude all | 10 * fail to support copy relocations for protected data, so exclude all |
11 * exported data symbols. */ | 11 * exported data symbols. */ |
12 | 12 |
13 __attribute__((__visibility__("default"))) | 13 __attribute__((__visibility__("default"))) extern struct _IO_FILE *const stdin, |
14 extern struct _IO_FILE *const stdin, *const stdout, *const stderr; | 14 *const stdout, *const stderr; |
15 | 15 |
16 __attribute__((__visibility__("default"))) | 16 __attribute__((__visibility__("default"))) extern int optind, opterr, optopt, |
17 extern int optind, opterr, optopt, optreset, __optreset, getdate_err, h_errno, d
aylight, __daylight, signgam, __signgam; | 17 optreset, __optreset, getdate_err, h_errno, daylight, __daylight, signgam, |
| 18 __signgam; |
18 | 19 |
19 __attribute__((__visibility__("default"))) | 20 __attribute__((__visibility__("default"))) extern long timezone, __timezone; |
20 extern long timezone, __timezone; | |
21 | 21 |
22 __attribute__((__visibility__("default"))) | 22 __attribute__((__visibility__("default"))) extern char *optarg, **environ, |
23 extern char *optarg, **environ, **__environ, *tzname[2], *__tzname[2], *__progna
me, *__progname_full; | 23 **__environ, *tzname[2], *__tzname[2], *__progname, *__progname_full; |
24 | 24 |
25 #pragma GCC visibility push(protected) | 25 #pragma GCC visibility push(protected) |
26 | 26 |
27 #endif | 27 #endif |
OLD | NEW |