summaryrefslogtreecommitdiffstats
path: root/lib/csu/m88k (follow)
Commit message (Collapse)AuthorAgeFilesLines
* crt0 MD _dl_exit() performs syscall to SYS_exit directly, but thenderaadt2020-10-151-1/+2
| | | | | | | | | | | some of these functions were returning. That makes the +1word address a fairly strong and easily located gadget. Put a hard-trap instruction after the syscall. This remains a gadget for 'terminal system' calls (such as execve), but hey that's why we have pledge w/o "exec" throughout the tree. Quite surprisingly, hppa's delay-slot load of SYS_exit makes it the safest of the bunch, not that this helps anyone. ok kettenis
* use symbolic SYS_exit instead of the value 1deraadt2020-10-141-2/+2
| | | | ok kettenis
* Insert definitions of environ and __progname in MD_CRT0_START again.aoyama2018-10-061-1/+5
| | | | | | | | | | That part is not needed with a PIE toolchain, but until gcc 4 on m88k receives enough fixes to produce as good code as gcc 3, the bits in r1.5 are still required. This fixes miniperl does not work correctly while building perl on m88k. Diff is suggested by Miod Vallat, tested by him and me, ok guenther@
* Add add PIE support for m88k (requires gcc4 toolchain)guenther2018-06-161-5/+37
| | | | | | Convert __cerror to hidden visibility. from miod@
* Unbreak arm and m88k: COPY relocations for weak symbols that are overloadedguenther2016-03-241-1/+5
| | | | | | | with strong symbols in ld.so don't do what we need, so put definitions back in crt0 and make ld.so update __progname like it does environ. report and testing patrick@ jsg@
* Rearrange C runtime bits: now that ld.so exports environ and __progname,guenther2016-03-201-10/+1
| | | | | | | | | | | 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@
* In static binaries, invoke kbind() once to disable it.guenther2015-09-011-1/+10
| | | | | With much assistance from miod@ ok deraadt@@
* Merge Makefiles, moving the build up a level and putting the CPU-specificguenther2014-11-121-64/+0
| | | | | | | build flags into conditionals in the Makefile, fixing a few inconsistencies in the process. \o/ miod@
* Merge the per-arch crt0.c files into common_elf/crt0.c, with MD macros inguenther2013-12-033-125/+33
| | | | | | the md_init.h files. Worked out with and ok miod@; ok matthew@
* Don't declare ___start static, for gcc4 would optimize it out.miod2013-05-081-2/+2
|
* build crt{begin,end}S.o with -fpic.miod2013-01-151-3/+3
|
* Switch m88k ports to ELF.miod2013-01-053-56/+138
|
* Pass install the -S option to avoid a window where the target isn'tguenther2011-11-081-2/+2
| | | | | | | 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@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-2/+2
| | | | | | | 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
* zap rcsid. Okay deraadt@, krw@espie2005-08-041-5/+1
|
* New, working, profiling code for m88k.miod2004-07-241-3/+18
|
* kill multi-line string; ok miodpvalchev2004-01-041-10/+10
|
* Put this again, but this time make sure the compiler really does not frob themiod2003-12-261-64/+24
| | | | stack frame before we get a chance to tinker with it.
* Revert - this was a bit premature.miod2003-12-261-24/+65
|
* A much simpler and more readable start() routine...miod2003-12-251-65/+24
|
* duplicate words and spelling fixes in commentsdavid2003-03-101-3/+3
| | | | ok miod@
* copy basename of argv[0] to bss for __progname, so that large stack smashderaadt2003-02-281-3/+10
| | | | does not make propolice reporting ineffective; millert miod ok
* Put m88k-related files in the correctly named directory.miod2001-06-262-0/+162