aboutsummaryrefslogtreecommitdiff
path: root/csu
AgeCommit message (Collapse)AuthorFilesLines
2013-09-23BZ #15754: CVE-2013-4788Carlos O'Donell1-0/+16
The pointer guard used for pointer mangling was not initialized for static applications resulting in the security feature being disabled. The pointer guard is now correctly initialized to a random value for static applications. Existing static applications need to be recompiled to take advantage of the fix. The test tst-ptrguard1-static and tst-ptrguard1 add regression coverage to ensure the pointer guards are sufficiently random and initialized to a default value.
2013-09-09Fix static-binary lazy FPU context allocationMaciej W. Rozycki1-4/+1
Long ago static startup did not parse the auxiliary vector and therefore could not get at any `AT_FPUCW' tag to check whether upon FPU context allocation the kernel would use a FPU control word setting different to that provided by the `__fpu_control' variable. Static startup therefore always initialized the FPU control word, forcing immediate FPU context allocation even for binaries that otherwise never used the FPU. As from GIT commit f8f900ecb9096ec47f5b7bb7626e29223c69061a static startup supports parsing the auxiliary vector, so now it can avoid explicit initialization of the FPU control word, just as can dynamic startup, in the usual case where the setting written to the FPU control word would be the same as the kernel uses. This defers FPU context allocation until the binary itself actually pokes at the FPU. Note that the `AT_FPUCW' tag is usually absent from the auxiliary vector in which case _FPU_DEFAULT is assumed to be the kernel default.
2013-08-30Fix then/than typos.Ondřej Bílka1-1/+1
2013-08-21Fix typos.Ondřej Bílka1-1/+1
2013-04-25Declare __ehdr_start with hidden visibility.Maciej W. Rozycki1-1/+2
This avoids a linker bug triggering for MIPS SVR4 binaries: http://sourceware.org/bugzilla/show_bug.cgi?id=15365 and regardless serves as a documentation of intent.
2013-03-28Use __ehdr_start, if available, as fallback for AT_PHDR.Roland McGrath1-0/+18
2013-03-28Make _dl_phdr pointer to const.Roland McGrath1-1/+1
2013-03-28Consolidate declarations of _dl_phdr, _dl_phnum.Roland McGrath1-4/+0
2013-03-12Add sysdeps/init_array to produce empty crt[in].o and use .preinit_array for ↵Roland McGrath2-0/+14
gcrt1.o
2013-03-01Revert GLIBC_PTHREAD_DEFAULT_STACKSIZE changes.Carlos O'Donell2-3/+3
This reverts the change that allows the POSIX Thread default stack size to be changed by the environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE. It has been requested that more discussion happen before this change goes into 2.18.
2013-03-01Set default stack size from program environmentSiddhesh Poyarekar2-3/+3
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
2013-02-27Add license exception text to gmon-start.Roland McGrath1-0/+17
2013-02-15Remove bounded-pointers build system support.Joseph Myers1-9/+0
2013-02-14Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers1-2/+1
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers1-17/+11
2013-02-07Remove lots of inline keywords.Roland McGrath1-2/+2
2013-02-01Remove bp-start.h and INIT_ARGV_and_ENVIRON.Joseph Myers1-2/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers15-15/+15
2013-01-01Update copyright years.David S. Miller1-2/+2
* catgets/gencat.c: Update copyright year. * csu/version.c: Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c: Likewise. * debug/xtrace.sh: Likewise. * elf/ldconfig.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c: Likewise. * elf/sotruss.ksh: Likewise. * elf/sprof.c: Likewise. * iconv/iconv_prog.c: Likewise. * iconv/iconvconfig.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * login/programs/pt_chown.c: Likewise. * malloc/memusage.sh: Likewise. * malloc/memusagestat.c: Likewise. * malloc/mtrace.pl: Likewise. * nscd/nscd.c: Likewise. * nss/getent.c: Likewise. * nss/makedb.c: Likewise. * posix/getconf.c: Likewise.
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers1-2/+2
2012-11-04[BZ #5246] Conditionalize use of PTR_DEMANGLE.Thomas Schwinge1-0/+2
2012-10-01Clean up init-first.c files.Roland McGrath1-18/+71
2012-09-11Update copyright years in csu/libc-tls.cH.J. Lu1-1/+1
2012-09-06Remove _dl_initial_dtvH.J. Lu1-11/+9
* csu/libc-tls.c (static_dtv): Renamed to ... (_dl_static_dtv): This. Make it global. (_dl_initial_dtv): Removed. (__libc_setup_tls): Updated. * elf/dl-tls.c (DL_INITIAL_DTV): New macro. (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with DL_INITIAL_DTV.
2012-09-06Always check dtv before freeing dtv[-1]H.J. Lu1-0/+2
2012-08-22Fix libc-start change for IRELless machines.Roland McGrath1-7/+8
2012-08-21Support static IFUNC calls irrespective of USE_MULTIARCH.Roland McGrath2-46/+37
2012-05-19Delete unused csu/.gitignoreAndreas Jaeger1-1/+0
2012-04-02Call __ctype_init in early glibc startup.Thomas Schwinge1-1/+5
This adds the bits missing from fd5bdc0924e0cfd1688b632068c1b26f3b0c88da.
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-2/+0
2012-02-21Remove old initfini mechanism.Joseph Myers2-74/+2
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert15-45/+30
2012-02-08Remove have-initfini and need-nopic-initfiniAndreas Schwab2-19/+3
2012-02-08Support crti.S and crtn.S provided directly by architectures.Joseph Myers1-0/+9
2012-01-08More fallout from supporting only ELFUlrich Drepper1-2/+0
2012-01-07Remove non-ELF supportUlrich Drepper2-21/+1
2012-01-01Update copyright yearUlrich Drepper1-2/+2
2011-09-10Remove support for !USE___THREADUlrich Drepper2-28/+3
2011-09-10Cleanup of configuration optionsUlrich Drepper2-13/+2
Make several tool features mandatory and simplify the code.
2011-07-10Comment typo fix.Roland McGrath1-2/+3
2011-01-17Update copyright year.Ulrich Drepper1-2/+2
2010-04-04Fix retrieving of kernel header version.Ulrich Drepper1-2/+13
2010-03-26Don't take the address of a void object.Richard Henderson1-2/+2
GCC 4.5 warns about "extern void _end; &end;". Use char[] instead, as that also doesn't fall foul of a target's .sdata optimizations. Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-15Implement handling of libc ABI in ELF header.Ulrich Drepper1-2/+6
2009-11-24Fix startup to security-relevant statically linked binaries.Ulrich Drepper2-6/+21
Before the change they crash on startup. Perform IREL relocations earlier to prevent this.
2009-10-13Fix USE_MULTIARCH conditionalAndreas Schwab1-5/+7
2009-07-28Fix bookkeeping of static TLS block for TLS_TCB_AT_TP architectures.Ulrich Drepper1-4/+5
2009-06-05Fix build problems with old binutils.Ulrich Drepper1-3/+3
Old binutils don't provide IFUNC and don't generate the section start/end symbols we expect. At least for now only add the initializer code for static IFUNC relocations if multi-arch support is requested.
2009-05-31Finish IFUNC support for x86 and x86-64.Ulrich Drepper1-0/+30
Add support for the IRELAIVE relocation and IFUNC in static executables.
2009-05-16remove subsumed .gitignore entries and filesJim Meyering1-6/+0