[PATCH] syslog.h: optionally make prioritynames[], facilitynames[] const
Denis Vlasenko
vda.linux at googlemail.com
Mon Jun 4 18:21:30 UTC 2007
Hi Mike,
Please apply attached trivial patch.
With this patch it's possible to move these arrays in rodata,
where they really belong.
Using dedicated SYSLOG_NAMES_CONST #define, it maintains 100%
compatibility with existing codebase and with glibc.
In case of busybox, 288 bytes are moved from rwdata to text:
# size *[67]/*/syslog*.o
text data bss dec hex filename
3169 288 0 3457 d81 busybox.t6/sysklogd/syslogd.o
3457 0 0 3457 d81 busybox.t7/sysklogd/syslogd.o
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SYSLOG_NAMES_CONST.patch
Type: text/x-diff
Size: 590 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070604/9ec8cb38/attachment-0002.bin
More information about the uClibc
mailing list