summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/__uClibc_main.c
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesAustin Foxley2009-10-171-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sync a few trivial changes back to masterAustin Foxley2009-10-171-4/+4
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-11/+0
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-181-4/+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: Austin Foxley <austinf@cetoncorp.com>
* Get non nptl threads compiled on x86.Khem Raj2008-12-231-6/+2
|
* Synch with trunk @ 24087Carmelo Amoroso2008-11-181-2/+2
| | | | Step 10: libc_hidden_removal
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-49/+49
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix __uClibc_main.c to not create aliases to hidden variablesCarmelo Amoroso2007-11-221-8/+8
| | | | | | | | | | | (like __progname). This patch has been already into the trunk and it solves a segfault with openssh for example. Further needed to fix the prototype of 'program_invocation_name; into include/errno.h to avoid mismatch with definition within libc/misc/internals/__uCLibc_main.c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix Makefile.in and synch them with trunk. Signed-off-by: Carmelo Amoroso ↵Carmelo Amoroso2007-11-201-6/+28
| | | | <carmelo.amoroso@st.com>
* Fix up header files."Steven J. Hill"2007-04-141-4/+1
|
* Merge from trunk and bring in NPTL code in the various 'misc' subsystems."Steven J. Hill"2006-08-241-44/+203
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-071-18/+32
|
* Merge from trunk."Steven J. Hill"2005-12-101-13/+0
|
* More merging from trunk."Steven J. Hill"2005-12-061-6/+15
|
* Merge from trunk."Steven J. Hill"2005-10-301-70/+27
|
* Bring in changes from trunk."Steven J. Hill"2005-10-041-3/+2
|
* Fix up build system for NPTL. I admit it is much cleaner now, but I lost my ↵"Steven J. Hill"2005-10-041-25/+35
| | | | entire Saturday fixing this $!#$!#@$T! up.
* Big sync with trunk."Steven J. Hill"2005-09-241-11/+68
|
* Finish merge from trunk."Steven J. Hill"2005-09-131-10/+0
|
* Add in calls needed for TLS setup for statically linked applications. A call ↵"Steven J. Hill"2005-08-301-4/+15
| | | | is made to '_dl_aux_init' which is defined in 'dl-support.c' to set up TLS variables before '__uClibc_init' gets called.
* Sync with trunk."Steven J. Hill"2005-08-301-3/+4
|
* Finalize the merge from the trunk. There are more files to be"Steven J. Hill"2005-07-301-24/+21
| | | | merged, but they will be done manually.
* Prepare for moving ldso FINI handling into libc.Joakim Tjernlund2005-03-201-3/+7
| | | | #define _DL_DO_FINI_IN_LIBC to enable(the arch specific part needs to be in place first).
* Patch from Peter S. Mazinger:Eric Andersen2004-12-221-2/+2
| | | | rename UCLIBC_PROPOLICE to UCLIBC_HAS_SSP
* Fix up __uClibc_init() for so that we prevent starting SUIDEric Andersen2004-10-271-17/+66
| | | | | binaries where the standard file descriptors are not opened. -Erik
* I will always test before I commit.Eric Andersen2004-08-161-29/+32
| | | | | | I will always test before I commit. I will always test before I commit. -Erik
* Setup __pagesize from inside __uClibc_init(), or else when registeringEric Andersen2004-08-161-31/+31
| | | | | | dtors via atexit(), atexit may need to call realloc with __pagesize still set to 0. ugh. -Erik
* Be a bit more prominant about the fact that setuid handlingEric Andersen2004-08-161-3/+8
| | | | is not quite there...
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-5/+3
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-1/+1
| | | | -Erik
* dohEric Andersen2004-08-041-1/+1
|
* Add missing header file needed to define PAGE_SIZEEric Andersen2004-08-041-0/+1
|
* As Joakim Tjernlund rightly notes, I should have used PAGE_SIZEEric Andersen2004-08-031-2/+2
| | | | not the hard coded value of 4096.
* Do not grovel about in the ELF header for the page size whenEric Andersen2004-07-281-2/+5
| | | | running on uClinux, which at runtime uses the FLAT file format.
* Setup a _dl_pagesize value for use by staticly linked appsEric Andersen2004-05-111-0/+2
|
* make certain that getpagesize() returns correct the value for mipsEric Andersen2004-05-111-3/+25
| | | | by extracting the value from the ELF header.
* Purge trailing white spaceEric Andersen2004-05-111-13/+13
|
* Peter S. Mazinger writes:Eric Andersen2004-01-021-0/+7
| | | | | | | | | | | | | | | | | | | Hello Erik! I have made some cosmetical changes to the files, removed the added SCRT=-fPIC option from building the crt0.S file (but it is a requirement to build them with -fPIC), and changed some comments. I have left the ldso.c patch with PIE_SUPPORT ifdefs, but consider applying it w/o them (see some earlier comment from PaX Team on this issue, as it is considered a bug). To have it work correctly, you'll also need removing COMPLETELY_PIC. One thing is missing: PIE_SUPPORT should be usable only for i386 (for now). Also added the support for propolice protection (that works for me and catches memcpy/strcpy attacks (but needs a special gcc version). Thanks, Peter
* Handle the app_fini stuff in exit without requiring atexit().Manuel Novoa III2003-12-271-3/+4
| | | | This avoids pulling in all the malloc/free code for a simple true/false app.
* Yield to yet another glibc-ism and add __prognameEric Andersen2003-06-301-0/+3
|
* Making atexit weak does nothing for dynamicly linked apps. And forEric Andersen2003-01-231-3/+5
| | | | | | | | | | staticly linked apps it entirely prevents destructors from running unless atexit is called for some other reason. So if they enabled ctor/dtor support we need to have a call to the real atexit for dtors to work properly. If people don't want the extra 4k or so of junk in their static apps, they should leave ctor/dtor support disabled. -Erik
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-011-56/+111
| | | | | | | how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
* Replace _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen2002-09-261-2/+4
| | | | -Erik
* Call the pthread setup junk early if possible.Eric Andersen2002-08-191-3/+10
|
* Shuffle things around a bit. Looks a little cleaner.Eric Andersen2002-08-081-56/+21
| | | | -Erik
* Cleanup the function pointer comparisionsEric Andersen2002-06-201-7/+7
| | | | -Erik
* Ah kant spel mi nameEric Andersen2002-06-171-1/+1
|
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | LC_TIME, LC_MONETARY, and LC_MESSAGES for the SUSv3 items. Also, nl_langinfo() when real locale support is enabled. New implementation of ctype.h. New implementation of wctype.h. New implementation of most of the string functions (smaller). New implementation of the wcs/wmem functions. These are untested, but they're also just preprocessor-modified versions ot the corresponding str/mem functions. Tweaked qsort and new bsearch. Stuff still pending: stdlib.h and wchar.h mb<->wc functions. I actually have working versions of the stdlib ones, but the reentrant versions from wchar.h require some reworking. Basic replacement and translit support for wc->mb conversions. (groundwork laid). Simple-minded collate support such as was provided by the previous locale implementation. (mostly done -- 8-bit codesets only) Shared mmaping of the locale data and strerror message text.
* Patch from Martin Proulx to remove weak_aliases for non ELF compilers inEric Andersen2002-04-171-2/+2
| | | | | | __uClibc_main for the _stdio_init and _stdio_term functions. Since weak_aliases are defined as hard aliases for non ELF compilers, these 2 symbols ended up to be multiply defined, as those two are defined in stdio.c.
* Patches from Yoshinori Sato <qzb04471@nifty.ne.jp> to fix h8300Eric Andersen2002-04-011-0/+3
| | | | support for pthreads and update for the latest and greatest.