summaryrefslogtreecommitdiff
path: root/lib/csu/sparc64
AgeCommit message (Collapse)Author
2017-08-11_dl_printf is no longer referenced by RELOC_{JMPREL,DYN,GOT}; delete the stubPhilip Guenther
ok kettenis@
2016-03-20Rearrange C runtime bits: now that ld.so exports environ and __progname,Philip Guenther
move their definitions and initialization in static links to libc.a Make crt0 always invoke a new func _csu_finish() in libc to process the auxv and to either register the ld.so cleanup function (in dynamic links) or initialize environ and __progname and do MC_DISABLE_KBIND (in static links). In libc, get pagesize from auxv; cache that between getpagesize() and sysconf(_SC_PAGESIZE) ok mpi@ "good time" deraadt@
2016-03-13crt0.c is already setting environ, so don't set it in MD_START_SETUPPhilip Guenther
ok kettenis@ mpi@
2015-09-01In static binaries, invoke kbind() once to disable it.Philip Guenther
With much assistance from miod@ ok deraadt@@
2014-12-22Self-relocation code for sparc64.Mark Kettenis
2014-11-12Merge Makefiles, moving the build up a level and putting the CPU-specificPhilip Guenther
build flags into conditionals in the Makefile, fixing a few inconsistencies in the process. \o/ miod@
2013-12-03Merge the per-arch crt0.c files into common_elf/crt0.c, with MD macros inPhilip Guenther
the md_init.h files. Worked out with and ok miod@; ok matthew@
2012-12-23Register cleanup handler passed by ld.so with atexit(3).Mark Kettenis
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2010-05-01Sprinkle a few __used markers to prevent gcc4 from throwing away essentialMark Kettenis
bits of code and data. With this change gcc4 builds usable crt*.o on sparc64, other architectures probably need some more love. ok marco@, jsg@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2008-11-11Compile crt0.o, crtbegin.o and crtend.o with -fpie/-fPIE. This requiresKurt Miller
gcc with pie support to be built first. ok kettenis@
2008-10-06The recent change to bsd.own.mk to allow PICFLAG to be overridden madeKurt Miller
these previously ignored PICFLAG settings become active. Remove PICFLAG overrides to restore -fpic/-fPIC modes. In snaps for a week. okay drahn@
2008-07-28Remove separate pic versions of crt0, crtbegin, crtend. NextKurt Miller
release we are taking a different approach. Idea from kettenis@. okay kettenis@ weingart@
2008-06-25Build pic versions of crt0, crtbegin & crtend for amd64, i386, powerpc,Kurt Miller
sparc64. The rest will come later. okay drahn@ no objection miod@ "Get it in" deraadt@
2008-06-25Make pic compatiable. From and okay drahn@ no objection miod@Kurt Miller
"Slackers!" deraadt@
2004-01-08__init/__fini handling on ELF has not been correct. It is supposed toDale Rahn
be a section which code stubs (branches) can be added to initialize/destructor This adds MD stubs to allow this to operate as expected. should fix wine and behave according to ELF specs. ok miod@
2004-01-04zap multi-line literals; ok deraadtPeter Valchev
2003-05-30Fix dependancy building for ELF startup code. Changed MakefilesDale Rahn
to build startup code the same on all (ELF) archs. hppa ok mickey@
2003-02-28copy basename of argv[0] to bss for __progname, so that large stack smashTheo de Raadt
does not make propolice reporting ineffective; millert miod ok
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-02I don't even want to know how I could screw this up so bad and noone noticed.Artur Grabowski
2001-08-29build crt0, crtbegin and friends.Artur Grabowski
2001-08-29crt0. Almost like on alpha, except that sparc64 needs an assembler stubArtur Grabowski
for the moment. (why make the ABI so complicated?) The assembler is inspired by crt0 in NetBSD.