summaryrefslogtreecommitdiff
path: root/lib/csu
AgeCommit message (Expand)Author
2016-08-08Look for a PT_GNU_RELRO section and, if present, mprotect that rangePhilip Guenther
2016-08-07Teach mips64 to pass &_DYNAMIC to _dl_boot_bind().Philip Guenther
2016-08-07alpha already calculates &_DYNAMIC for the _reloc_alpha_got() call, soPhilip Guenther
2016-08-07Teach i386 to pass &_DYNAMIC to _dl_boot_bind()Philip Guenther
2016-08-07Psych: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for 19 monthsPhilip Guenther
2016-08-07Flip the #ifdef logic: amd64, i386, and mips64 were the only static PIEPhilip Guenther
2016-07-05Missed a reference to dl_prebind.hPhilip Guenther
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
2016-05-07Declare moncontrol(3) APIs in <sys/gmon.h>Philip Guenther
2016-03-24Unbreak arm and m88k: COPY relocations for weak symbols that are overloadedPhilip Guenther
2016-03-20Rearrange C runtime bits: now that ld.so exports environ and __progname,Philip Guenther
2016-03-13crt0.c is already setting environ, so don't set it in MD_START_SETUPPhilip Guenther
2016-03-12Call mprotect() via its hidden _lib_mprotect alias to avoid accidentalPhilip Guenther
2016-03-09We are done providing support for the vax.Theo de Raadt
2015-12-06Simplify the relocation code for the ld.so bootstrap and static pie: trackPhilip Guenther
2015-11-10libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()Philip Guenther
2015-09-19We don't need to calculate the load offset. This also means we don't needMark Kettenis
2015-09-19Make sure we set PROT_EXEC on the GOT for BSS-PLT binaries on powerpc.Mark Kettenis
2015-09-09Fetch the _GLOBAL)OFFSET_TABLE_ and _DYNAMIC pointers in a way that'sMark Kettenis
2015-09-09Now that ld(1) will generate a read-only GOT for truly static binaries, weMark Kettenis
2015-09-01In static binaries, invoke kbind() once to disable it.Philip Guenther
2015-08-17Do not include os-note-elf.h here, otherwise we end up with duplicate OS notesMark Kettenis
2015-07-03static pie support for sparc.Miod Vallat
2015-04-07Make pthread_atfork() track the DSO that called it like atexit() does,Philip Guenther
2015-04-04gcc 2.x is deadPhilip Guenther
2015-02-07argc is passed as a long by the kernel, define it as such to match whatMiod Vallat
2015-01-16<sys/param.h> is not needed here either.Theo de Raadt
2015-01-01Inline the .cpsetup pseudo-statement in rcrt0 to avoid saving the "old" gpMiod Vallat
2014-12-30self-relocating crt0 bits for sh, and enable static pie by default. With someMiod Vallat
2014-12-29Make the PLT read-only on powerpc as well.Mark Kettenis
2014-12-27Static PIE for mips64. Still something not quite right as a full make buildMark Kettenis
2014-12-27Only include "boot.h" if MD_RCRT0_START is defined. Should fix build on vax.Mark Kettenis
2014-12-27Static PIE support for alpha.Mark Kettenis
2014-12-26Self-relocation code for powerpc.Kurt Miller
2014-12-25Use archdep.h GOT_PERMS define for mprotect of GOT. okay kettenis@Kurt Miller
2014-12-24Expand Elf_Rel relocations to include DT_JMPREL. Inspect DT_PLTREL valueKurt Miller
2014-12-24Fix previos. Pointed out by kurt@.Mark Kettenis
2014-12-23Use the page size passed by the kernel in the Auxilliary Vector to handleMark Kettenis
2014-12-23Make sure the GOT and PLT are not writable.Mark Kettenis
2014-12-23do not expose "ra" to cpp because it muddles up the .c code above.Theo de Raadt
2014-12-23Set up the linkage table register (%r19) before calling _dl_boot_bind.Mark Kettenis
2014-12-22Self-relocation code for i386.Kurt Miller
2014-12-22Self-relocation code for hppa.Mark Kettenis
2014-12-22Self-relocation code for sparc64.Mark Kettenis
2014-12-22When skipping a relocation because the referenced symbol is undefined, makeMark Kettenis
2014-12-22Introduce new csu0 variant for -static -pie binaries to use calledKurt Miller
2014-11-22mop up a barely started project... getting in the way of grepping the tree!Theo de Raadt
2014-11-15Objects for the executable can be PIE instead of PIC, so remove the sparc64Philip Guenther
2014-11-15ELF uberalles, so move the files up out of common_elfPhilip Guenther
2013-12-28Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass theMark Kettenis