diff options
Diffstat (limited to 'sysklogd/syslogd_and_logger.c')
-rw-r--r-- | sysklogd/syslogd_and_logger.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysklogd/syslogd_and_logger.c b/sysklogd/syslogd_and_logger.c index 6458a9332..6d06a718b 100644 --- a/sysklogd/syslogd_and_logger.c +++ b/sysklogd/syslogd_and_logger.c | |||
@@ -43,6 +43,17 @@ typedef struct _code { | |||
43 | */ | 43 | */ |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /* musl decided to be funny and it implements these as giant defines | ||
47 | * of the form: ((CODE *)(const CODE []){ ... }) | ||
48 | * Which works, but causes _every_ function using them | ||
49 | * to have a copy on stack (at least with gcc-6.3.0). | ||
50 | * If we reference them just once, this saves 150 bytes. | ||
51 | * The pointers themselves are optimized out | ||
52 | * (no size change on uclibc). | ||
53 | */ | ||
54 | static const CODE *const bb_prioritynames = prioritynames; | ||
55 | static const CODE *const bb_facilitynames = facilitynames; | ||
56 | |||
46 | #if ENABLE_SYSLOGD | 57 | #if ENABLE_SYSLOGD |
47 | #include "syslogd.c" | 58 | #include "syslogd.c" |
48 | #endif | 59 | #endif |