summaryrefslogtreecommitdiff
path: root/lib/csu/alpha
AgeCommit message (Collapse)Author
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-27Static PIE support for alpha.Mark Kettenis
This adds alpha-specific first-pass GOT relocation code to boot.h. The assembly code is pure magic. The numeric register names don't make it easier to understand (or compare with the equivalent ld.so code). Unfortunately the assembler only understands a few symbolic register names. Renames the crt0.o entry point to __start. Our compiler was already using __start and the linker will soon follow. ok kurt@
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@
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@
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@
2005-09-25Revert temporary hack.Mark Kettenis
ok deraadt@
2005-08-04zap rcsid. Okay deraadt@, krw@Marc Espie
2004-10-21Temporary hack to make alpha build again.Mark Kettenis
ok drahn@, 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@
2003-08-25Define both _start and __start in crt0, all of the other architectures do.Dale Rahn
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-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-05-29fix the alpha after that last diff which was obviously not testedTheo de Raadt
2001-03-24Use "realinstall" to allow the framework to do other work if needed;Thorsten Lockert
path of least surprise. Ok millert@
2001-02-03Remove even more dead code.Artur Grabowski
2001-02-03Schedule running of __fini in __init, not __start.Artur Grabowski
2001-02-03Use crtbegin and crtend from common_elf.Artur Grabowski
2001-02-03Don't define ECOFF_COMPAT. We're ELF.Artur Grabowski
2001-01-31deconfuse include path. (XXX - this for my future hacks).Artur Grabowski
2001-01-25This is not how we'll do dynamic libraries on alpha anyway.Artur Grabowski
Zap dead code.
1999-08-20Fix RCS IdsNiklas Hallqvist
1998-06-01consitancize with other archsMichael Shalayeff
1997-06-24Use OpenBSD tags and not SCCS or RCS Id tagsThorsten Lockert
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPTodd C. Miller
This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
1996-11-13Sync with NetBSD, Add OpenBSD tags.Niklas Hallqvist
1996-11-13Sync with NetBSD, Add OpenBSD tags.Niklas Hallqvist
1996-05-22machine/asm.h is sufficientTheo de Raadt
1995-12-21from netbsd; limit the flags that get passed to cppTheo de Raadt
1995-12-15from netbsd; do not override other CFLAGS settingsTheo de Raadt
1995-12-14from netbsd; fix profiling supportTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt