summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals
Commit message (Collapse)AuthorAgeFilesLines
...
* produce a .os instead of .oSMike Frysinger2005-10-311-1/+1
|
* Hopefully correct undefined __libc_stack_end issuePeter S. Mazinger2005-10-293-7/+10
|
* Replace all Makefiles for new build infrastucturePeter S. Mazinger2005-10-291-51/+8
|
* Moved guard_setup to dl-osinfo.h (used commonly by ldso and libc). Renamed ↵Peter S. Mazinger2005-10-272-48/+24
| | | | to _dl_setup_stack_chk_guard, as in glibc. SSP requires now binutils-2.16.1 and newer. Add NOT_IN_libc/IS_IN_libc. Began using -DSHARED in uClibc_main.c, there are more candidates in there. Move back dl_protect_relro to it's earlier place.
* All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other ↵Peter S. Mazinger2005-10-251-0/+41
| | | | archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
* Remove /dev/erandom support, as [h]lfs does not use it in this form.Peter S. Mazinger2005-10-121-27/+2
|
* Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all ↵Peter S. Mazinger2005-10-121-12/+10
| | | | objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
* Allow building uClibc w/ make-3.79.1 if SSP is disabledPeter S. Mazinger2005-10-111-0/+2
|
* User strong_alias instead of initializing __guard separatelyPeter S. Mazinger2005-10-081-4/+2
|
* Clean up pthread include mess. Some of these will be needed to support NPTL, ↵"Steven J. Hill"2005-10-041-0/+4
| | | | but they do no harm for the linuxthreads case. Yes, I tested this.
* Enable attribute_relro on __guard and __stack_chk_guard now that ld.so ↵Peter S. Mazinger2005-10-031-2/+2
| | | | supports it
* Change the order in which '__uClibc_init' is called. In the case of NPTL, ↵"Steven J. Hill"2005-10-011-4/+5
| | | | some auxillary TLS set up has to happen beforehand. This has been tested for almost two months now and I am tired of chasing it around in my merges. Look in the NPTL trunk if you want more information.
* Add gcc-4.1 non-TLS __stack_chk_guard support. Run the guard setup only once.Peter S. Mazinger2005-10-011-17/+23
|
* Do not build __uClibc_main.o with ssp enabledPeter S. Mazinger2005-09-231-0/+2
|
* New ssp code using syscalls where possible.Peter S. Mazinger2005-09-231-6/+63
| | | | | Moved guard_setup to __uClibc_main.c, the only place where it is called. Removed SIGKILL option, not usable with sigaction.
* correct some typosPeter S. Mazinger2005-09-211-5/+5
|
* punt _DL_FINI_CRT_COMPAT option now that 0.9.28 has been releasedMike Frysinger2005-09-081-20/+0
|
* Fix by Martin Schlemmer:Mike Frysinger2005-09-081-0/+10
| | | | | | | | If _DL_FINI_CRT_COMPAT is defined, _dl_fini is setup to run at exit via atexit(), but this makes it run _before_ the fini (__app_fini()) of the app, causing stuff like sandbox that frees structs, etc via its fini to segfault. http://bugs.gentoo.org/98187
* anemo writes in Bug 9: use ElfW(auxv_t) instead of Elf32_auxv_tMike Frysinger2005-08-291-3/+4
|
* per suggestion by psm, remove the variable DYNAMIC_LINKEREric Andersen2005-08-131-1/+1
|
* Add __libc_stack_end to libc.Joakim Tjernlund2005-06-293-7/+8
|
* Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT toJoakim Tjernlund2005-05-281-1/+11
| | | | | | | | be able to run apps built with 0.9.27. This also renames __uClibc_start_main to __uClibc_main. This compat option should be removed some time after 0.9.28 is released. Let me know if you don't like this change.
* This commit breaks the entire world (yet again). Calculate theEric Andersen2005-05-261-11/+13
| | | | | | | position of envp in C code based on argv and argp. No need to caclulate that in asm for N arches. This way, we better match what glibc does. All arches will need to be fixed to match up with this change.
* Adapt startup code in x86 and PPC to almost match glibc. _init vs. ↵Joakim Tjernlund2005-05-251-3/+4
| | | | | | __libc_csu_init and _fini vs. __libc_csu_fini remains to do.
* Pass main function ptr from crt1 to __uClibc_start_main.Joakim Tjernlund2005-05-211-20/+3
| | | | | | | | Kill old crt0/__uClibc_main. This breaks ABI. All apps and toolchain needs to be recompiled. All archs except x86 are now broken and need to be fixed as x86. PPC will be fixed shortly by me, the rest is left to the arch maintainers.
* In Bug 116, dicksnippe writes:Mike Frysinger2005-04-161-3/+32
| | | | | | | | | | uClibc's mkstemp/mktemp tries to read /dev/urandom (or /dev/random) to generate random contents for the .XXXXXX part of its argument. In a chrooted environment /dev/[u]random might not be available. Thus the mkstemp call fails. Add back in the braindamaged gettimeofday/getpid code, but only as a fallback for when reading /dev/[u]random fail for whatever reasons.
* 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).
* no more cvsMike Frysinger2005-02-121-1/+0
|
* merge parallel build supportMike Frysinger2005-01-251-5/+4
|
* 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.
* Oops. Missed a spot.Eric Andersen2004-06-121-1/+1
|
* scrap the goofy time + getpid() based "randomness" and useEric Andersen2004-06-061-28/+35
| | | | the real thing.
* 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.
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Yield to yet another glibc-ism and add __prognameEric Andersen2003-06-301-0/+3
|
* Fixup handling of the .note.ABI-tag section so that it is ARM only,Eric Andersen2003-02-083-88/+1
| | | | | | and so it actually works as intended allowing binaries on ARM to be debugged. -Erik