summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/__uClibc_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into prelinkCarmelo Amoroso2011-04-061-20/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (137 commits) utils/ldd: Check for returned pointer from strrchr not the value it holds cris: add provide arch-specific vfork implementation lutimes.c, stubs.c: fix compiling lutimes, if __NR_utimensat is not defined bump version to 0.9.32-rc3-git release 0.9.32-rc3 memalign: include sys/param.h for MAX arm/bits/atomic.h: Include common/bit/atomic.h for thumb1 wctype.h: fix libc_hidden_proto for iswupper and add it for iswspace add libc_hidden_proto for wcs[n]casecmp_l really fix missing __libc_drand48_data Revert "missing prototype of __libc_drand48_data fixed" missing prototype of __libc_drand48_data fixed time.c, time.h: remove unused hidden strftime/strptime nanosleep.c: remove duplicated libc_hidden_proto ctype.c, ctype.h: remove commented parts that were banned for removal after 0.9.31 _wctype.c, wctype.h: remove unused isw* and wctype_l hidden functions time.c, wchar.h: remove unused hidden wcsftime str[n]casecmp.c: fix hidden usage remove unused hidden functions frv/memset.S: add missing libc_hidden_def ... Conflicts: ldso/ldso/ldso.c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * Correct ssp codePeter S. Mazinger2011-03-031-18/+7
| | | | | | | | | | | | | | | | Avoid using strong_alias in ssp, some archs dislike it. Make stack_chk_guard static. Export __stack_smash_handler only if compatibility option is enabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
| * add missing prototypesPeter S. Mazinger2011-03-031-2/+5
| | | | | | | | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* | ldso: Add implementation of ld.so standalone executionFilippo Arcidiacono2010-09-171-1/+17
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dynamic linker can be run either indirectly through running some dynamically linked program or library (in which case no command line options to the dynamic linker can be passed and, in the ELF case, the dynamic linker which is stored in the .interp section of the program is executed) or directly by running: /lib/ld-uClibc.so.* [OPTIONS] [PROGRAM [ARGUMENTS]] Stand-alone execution is a prerequisite for adding prelink capabilities to uClibc dynamic linker, as well useful for testing an updated version of the dynamic linker without breaking the whole system. Currently supported option: --library-path PATH use given PATH instead of content of the environment variable LD_LIBRARY_PATH (Mandatory for prelinking) Not supported options: --list list all dependencies and how they are resolved --verify verify that given object really is a dynamically linked object we can handle --inhibit-rpath LIST ignore RUNPATH and RPATH information in object names in LIST This feature can be enabled by setting LDSO_STANDALONE_SUPPORT=y Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* more workarounds for GCC PR32219Timo Teräs2010-06-301-2/+2
| | | | | | | | | | Commit 2e53dd645d5348f207cec7f8595969dc566c5a55 workarounds GCC bug when accessing _locale_init and _stdio_init. We need the same fix for __errno_location and __h_errno_location otherwise we crash calling null with static and non-threaded builds. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: Fix non-NPTL threads buildCarmelo Amoroso2010-06-171-1/+3
| | | | | | | | This patch fixes some issues building uclibc with linuxthreads, that seem to have been introduced by the NPTL changes. Signed-off-by: Andrew Stubbs <ams@codesourcery.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* static build: define pthreads wrappers only for threaded buildsTimo Teräs2010-05-171-0/+2
| | | | | | | | Otherwise we get compiler errors due to undefined prototypes as noticed by Denys. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* some (all?) archs don't define asm, so use builtin __asm__Austin Foxley2010-05-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* workaround GCC PR32219Denys Vlasenko2010-05-171-2/+13
| | | | | | | | we ended up calling 0 Fixes bug #1033 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* static build: fix internal locking weaks to get pulled in alwaysTimo Teras2010-05-071-0/+35
| | | | | | | | | | | Linker is smart and does not pull in weaks.os, ever. This happens because that compilation unit does not get strong references and ld eliminates dead code. We really need the weaks for static build in a compilation unit that is always there, otherwise it won't work. Signed-off-by: Timo Teras <timo.teras@iki.fi> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merge commit 'origin/master' into nptlAustin Foxley2010-02-051-4/+2
|\ | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * __uClibc_main: use __pagesize to protect against recursionBernhard Reutner-Fischer2010-02-031-4/+2
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Merge branch 'master' into nptlCarmelo Amoroso2010-01-251-2/+3
|\| | | | | | | | | | | | | | | | | | | Conflicts: libc/inet/Makefile.in libc/inet/hostid.c Synchronise nptl branch with master branch @ c4b750195714ec7c10aa4de15610c5aae0751c1c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * silence some warnings about unused paramsBernhard Reutner-Fischer2010-01-231-2/+3
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | define local stack_chk_guard for nptlNatanael Copa2009-11-271-1/+2
| | | | | | | | | | Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | whitespace fixesAustin Foxley2009-10-171-1/+1
| | | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* | uClibc_main: add the needed support for nptlAustin Foxley2009-10-171-34/+75
|/ | | | | | | | * setup memory for the cancellation buffer * remove unneeded weak's * deallocation of tsd on main thread exit Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-9/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-101-5/+3
| | | | | | | | | | | | __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
* remove __libc_fcntl[64]Denis Vlasenko2008-12-101-4/+2
|
* fix some unneeded PLT referencesDenis Vlasenko2008-11-221-1/+4
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-4/+4
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-1/+1
|
* Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).Carmelo Amoroso2008-11-181-3/+13
| | | | | | Currently we have an implementation in ld.so and libdl.a. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-2/+2
|
* if argv[0] is NULL, dont try to parse it and subsequently crash ... found by ↵Mike Frysinger2008-06-271-6/+8
| | | | running execve05 ltp test on blackfin ([#4194])
* __uClibc_main.c: save ~70 bytes by not checking that /dev/nullDenis Vlasenko2008-05-251-9/+7
| | | | | | | | | | | is indeed a char device with correct (maj,min). (If it's not such a char device, the system is screwed anyway, nothing can be done about it...) text data bss dec hex filename - 715 4 21 740 2e4 libc/misc/internals/__uClibc_main.o + 644 4 21 669 29d libc/misc/internals/__uClibc_main.o
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-201-2/+1
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-2/+2
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* bug 1310: drop hidden aliases to data since some arches crap with this due ↵Mike Frysinger2007-09-151-14/+13
| | | | to copy relocs
* change the auxvt code from being dependent on MMU to !LDSO as auxvt things ↵Mike Frysinger2007-06-011-5/+5
| | | | are ELF-specific, not MMU-specific
* Peter Mazinger pointed out that my last commit was faulty.Joakim Tjernlund2007-01-111-1/+1
| | | | This should fix it.
* Fix SEGV for static builds in exit() path.Joakim Tjernlund2007-01-101-0/+26
| | | | Leave the now obsolete libc/misc/pthread dir in for now.
* create new menu so people can select what format they wish to build uClibcMike Frysinger2006-12-111-8/+8
|
* Richard Sandiford writes: add support for init/fini arrays in shared flat ↵Mike Frysinger2006-12-081-4/+12
| | | | libraries
* fix from cmetcalf to make sure we clear the auxvt table before using itMike Frysinger2006-11-271-0/+1
|
* expand comment a little more as to why _stdio_init() is weak thanks to mjn3Mike Frysinger2006-05-061-0/+2
|
* use weak_alias() for data symbols, not strong_alias()Mike Frysinger2006-05-041-1/+1
|
* Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵Peter S. Mazinger2006-03-101-11/+3
| | | | most of global data relocations are back
* Add UCLIBC_HAS_SSP_COMPAT option guarding gcc-3.x ssp supportPeter S. Mazinger2006-03-071-3/+10
|
* tweak the idea between having a MMU and actually using itMike Frysinger2006-02-181-5/+5
|
* touchup whitespaceMike Frysinger2006-02-171-11/+10
|
* after much deliberation, may i present Joseph S. Myers patch to add support ↵Mike Frysinger2006-02-141-0/+55
| | | | | | | | for .init and .fini array processing for the gory details, see the mailing list: http://www.uclibc.org/lists/uclibc/2006-January/014079.html http://www.uclibc.org/lists/uclibc/2006-February/014285.html
* environ is GNU extensionPeter S. Mazinger2006-02-131-0/+2
|
* Make it build w/ HAVE_SHARED disabled and SSP enabledPeter S. Mazinger2006-02-011-6/+13
|
* global data uses libc_hidden_data_def, convert all -I hope- and add some newPeter S. Mazinger2006-02-011-2/+2
|
* add comment to know why it's weakPeter S. Mazinger2006-01-311-0/+1
|
* change strong to weak_alias, arm fails, thx Khem RajPeter S. Mazinger2006-01-311-1/+1
|
* Some warnings go awayPeter S. Mazinger2006-01-271-1/+2
|