summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-12-12- only strip if cc compiled fineBernhard Reutner-Fischer
Avoids displaying an additional error from strip when your cc ICEs or fails otherwise.
2008-12-12*: remove vestiges of gcc's "bounded pointers" feature,Denis Vlasenko
it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
2008-12-12smaller brk() for i386. Inspected assembly to see it's still valid.Denis Vlasenko
text data bss dec hex filename - 44 0 4 48 30 libc/sysdeps/linux/i386/brk.o + 42 0 4 46 2e libc/sysdeps/linux/i386/brk.o
2008-12-11Move kernel-features.h header from the linuxthread directoryCarmelo Amoroso
to a common one (libc/sysdeps/linux/common/bits) so that any function can access to supported kernel feature (i.e. getdents). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-12-11create arch-generic brk() based on blackfin oneMike Frysinger
2008-12-11add inlines for Blackfin atomic functionsMike Frysinger
2008-12-11Blackfin: add L2_SRAM flag for alloc funcMike Frysinger
2008-12-11Blackfin: declare {INLINE,INTERNAL}_SYSCALL() and friendsMike Frysinger
2008-12-11add ENDPROC() macro for Blackfin assemblyMike Frysinger
2008-12-11use newer spiffy asm constraints to get better code generationMike Frysinger
2008-12-11punt old unused headerMike Frysinger
2008-12-11update ptrace.h to latest from glibcMike Frysinger
2008-12-11get rid of __libc_* symbols. Some whitespace cleanups.Khem Raj
2008-12-10*: remove some __libc_XXX functions:Denis Vlasenko
__libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
2008-12-10remove __libc_fcntl[64]Denis Vlasenko
2008-12-10remove __libc_getdomainname alias. google says only we have it.Denis Vlasenko
2008-12-10- document environment variables used by the install_* targets.Bernhard Reutner-Fischer
See their config helptexts for further detail.
2008-12-10Remove hardwired usr/ from install_utils (that's what $RUNTIME_PREFIX is for)Rob Landley
and add install_hostutils. Now install_utils should use $PREFIX more like other packages do.
2008-12-09smaller memcpyDenis Vlasenko
text data bss dec hex filename - 39 0 0 39 27 libc/string/i386/memcpy.os + 35 0 0 35 23 libc/string/i386/memcpy.os
2008-12-09setenv.c: tiny code shrinkDenis Vlasenko
text data bss dec hex filename - 546 0 4 550 226 libc/stdlib/setenv.o + 538 0 4 542 21e libc/stdlib/setenv.o
2008-12-09setenv.c: further code shrinkDenis Vlasenko
text data bss dec hex filename - 672 0 4 676 2a4 libc/stdlib/setenv.o + 546 0 4 550 226 libc/stdlib/setenv.o
2008-12-09- improve documentation of utils and hostutilsBernhard Reutner-Fischer
2008-12-09Mention make utils, hostutils, install_utils.Rob Landley
2008-12-09fix segv on clearenv(); unsetenv("foo"); [was deref'ing NULL],Denis Vlasenko
add a few missing ENOMEMs, some code shrinking text data bss dec hex filename - 727 0 4 731 2db libc/stdlib/setenv.o + 672 0 4 676 2a4 libc/stdlib/setenv.o
2008-12-09getaddrinfo: runp->ifa_addr indeed can be NULL, don't dereference itDenis Vlasenko
ifaddrs.c: cosmetics, no code changes
2008-12-08getaddrinfo: remove superfluout indentation, fix incorrect one.Denis Vlasenko
remove one superfluous statement.
2008-12-08- fix loop for checking ifaddr on both IPv4 and IPv6Bernhard Reutner-Fischer
2008-12-06resolver: make new name resolutions reread /etc/resolv.confDenis Vlasenko
if 256+ seconds passed since last read; fix cases where we switch to next search domain instead of switching to new server optimize ip4/ip6 combined cases; rewrite for(;;) loops so that it's clearer what's going on; document buffer usage; add TODOs and FIXMEs (for one, gethostbyname2 does not fill ->h_aliases field in the result AT ALL, and is iffy in general) text data bss dec hex filename - 245898 1403 11904 259205 3f485 libuClibc-0.9.30-svn.so + 245785 1403 11904 259092 3f414 libuClibc-0.9.30-svn.so
2008-12-04Remove __NTH from the declation.Khem Raj
2008-12-04CLean librt/*.oS too (NPTL will add some).Carmelo Amoroso
2008-12-04Go deeper while cleaning string directory to removeCarmelo Amoroso
TARGET_SUBARCH implementation too. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-12-04Added do_awk commanf for invoking awk parser. It will be usedCarmelo Amoroso
for generating some file on-the-fly on the NPTL case. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-12-03- use proper macrosBernhard Reutner-Fischer
2008-12-03- use proper macro (no obj-code changes)Bernhard Reutner-Fischer
2008-12-03- Use runtime pagesize (Jeremy Kerr)Bernhard Reutner-Fischer
Some powerpc machines can support 64k pages, enabled by the CONFIG_64K_PAGES option in linux. However, the uClibc dynamic loader won't currently work on these machines, as it uses hard-coded values (PAGE_ALIGN, ADDR_ALIGN and OFFS_ALIGN) in the ldso architecture-specific headers. When running on a kernel with 64k pages, ld.so tries to mmap with 4k-aligned addresses, rather than 64k, so mmap fails with -EINVAL. When booting a 64k machine with a uClibc dynamic linker, init fails with: /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init: can't load library 'libc.so.0' Kernel panic - not syncing: Attempted to kill init! This change allows ld.so determine these alignment masks at runtime, rather than compile-time. Since we have the _dl_pagesize variable available, we can use that to generate the appropriate masks. Since almost all of the architectures can use the common definitions for the _ALIGN macros, we can consolidate them all in ldso.h, and override in the sysdep headers where necessary (ie, mips). This allows me to start a uClibc-based root fs on a 64k machine. Signed-off-by: Jeremy Kerr <jk at ozlabs org>
2008-12-03A missing change when we recently released a lot of fixCarmelo Amoroso
on localae support
2008-12-03Two other absolutely safe change that will be used by NPTL, aimedCarmelo Amoroso
to simplify merge.
2008-12-02Fix wcswidth function when LOCALE support is disabledCarmelo Amoroso
while keeping WCHAR support enabled. This solves two testcases: tst_wcwidth and tst_wcswidth. Fix dat_iswctype.c fiinput file: character 0x80 is not a control character: it fixes tst_iswctype test. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
2008-12-01hostid: improve extremely unreadable partsDenis Vlasenko
*: remove checks of sigaction and sigprocmask results in cases where they clearly can't fail: sigaction(known_good_sig) sigprocmask(known_good_how) text data bss dec hex filename - 393 4 0 397 18d libc/pwd_grp/lckpwdf.o + 382 4 0 386 182 libc/pwd_grp/lckpwdf.o - 56 0 0 56 38 libc/signal/sigblock.o + 44 0 0 44 2c libc/signal/sigblock.o - 211 0 0 211 d3 libc/signal/sigset.o + 202 0 0 202 ca libc/signal/sigset.o - 56 0 0 56 38 libc/signal/sigsetmask.o + 44 0 0 44 2c libc/signal/sigsetmask.o - 309 0 0 309 135 libc/unistd/sleep.o + 256 0 0 256 100 libc/unistd/sleep.o
2008-12-01on Bernd's request, remove commented-out code snippetsDenis Vlasenko
2008-12-01remove checks for "impossible" errors,Denis Vlasenko
clarify uses of unoptimized sigXXX ops (they check signo), use faster sigops where approproate. text data bss dec hex filename - 68 0 0 68 44 libc/signal/sighold.o + 63 0 0 63 3f libc/signal/sighold.o - 114 0 0 114 72 libc/signal/sigintr.o + 110 0 0 110 6e libc/signal/sigintr.o - 113 0 0 113 71 libc/signal/sigpause.o + 108 0 0 108 6c libc/signal/sigpause.o - 68 0 0 68 44 libc/signal/sigrelse.o + 63 0 0 63 3f libc/signal/sigrelse.o
2008-12-01fix sigset_t size for mips (it's the only arch with 128 signals).Denis Vlasenko
fix _NSIG for it. better document what's going on in sigaction(). seems to not induce any actual code changes (sans mips).
2008-12-01optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko
text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
2008-12-01l64a: shrink by 13 bytes, and -1 relocDenis Vlasenko
2008-12-01constify more dataDenis Vlasenko
text+data text+rodata rwdata bss filename - 2534 2510 24 0 libc/inet/rpc/clnt_udp.o + 2534 2534 0 0 libc/inet/rpc/clnt_udp.o - 1904 1880 24 0 libc/inet/rpc/clnt_tcp.o + 1904 1904 0 0 libc/inet/rpc/clnt_tcp.o - 770 746 24 4 libc/inet/rpc/clnt_raw.o + 770 770 0 4 libc/inet/rpc/clnt_raw.o
2008-12-01rpc: constify data, localize unnecessarily static dataDenis Vlasenko
text+data text+rodata rwdata bss filename - 2308 2284 24 24 libc/inet/rpc/clnt_unix.o + 2308 2308 0 0 libc/inet/rpc/clnt_unix.o
2008-12-01random: use smaller data fields where appropriateDenis Vlasenko
text data bss dec hex filename - 130 156 0 286 11e libc/stdlib/random.o + 130 148 0 278 116 libc/stdlib/random.o - 586 0 0 586 24a libc/stdlib/random_r.o + 570 0 0 570 23a libc/stdlib/random_r.o
2008-12-01gethostbyname can use gethostbyname2, saving one nearly 0.5k static bufferDenis Vlasenko
text data bss dec hex filename - 45 0 480 525 20d libc/inet/gethostbyname.o + 18 0 0 18 12 libc/inet/gethostbyname.o
2008-12-01rpc: should check against max for int32, not intDenis Vlasenko
2008-12-01rpc: ifdef out xdrrec_{get,put}long if int32 == long,Denis Vlasenko
otherwise use xdrrec_{get,put}int32 + trivial transform. eliminate warnings. des: small shrink + eliminate a warning