Commit Graph

37 Commits

Author SHA1 Message Date
kamil 1ec5b47878 Specify NOLIBCSANITIZER in lib/csu
The low-level libraries in csu are used in non-sanitized code.
2018-07-26 01:25:23 +00:00
kamil bef3ed2e02 Disable MKSANITIZER in lib/csu
These low-level libraries are expected to be not touched by a sanitizer.
Every libc program not using sanitizers cannot work with sanitized csu.
2018-06-16 18:58:00 +00:00
matt 11614bb2b2 MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:25:49 +00:00
joerg 61731496eb Retire USE_COMPILERCRTSTUFF=yes. 2014-04-22 13:20:58 +00:00
matt b4939ef9a5 Add support for a NetBSD MARCH elf note to record the MACHINE_ARCH for
which a program was compiled.
2013-09-10 16:45:33 +00:00
matt 0b573b56b6 Make all earm variants use earm. 2013-04-28 06:09:52 +00:00
joerg c91e3eb75b Unbreak compat. 2012-06-16 19:19:14 +00:00
joerg ee99db43bc Allow USE_COMPILERCRTSTUFF=yes for platforms that use MACHINE_CPU !=
MACHINE_ARCH.
2012-06-16 18:19:39 +00:00
drochner 953846fa39 use of .PARSEDIR just doesn't work with .OBJDIR, replace with .CURDIR 2011-01-31 17:54:20 +00:00
skrll 15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
joerg 01bc9d5012 Switch i386 and x86_64 to the new CRT layout. The crt0.c body is shared
between all platforms and a small assembler stub in crt0.S is used for
setting up the proper stack and whatever else MD needs.

Extract crti.S and crtn. from the old dot_init.h files. Prepare other
platforms that use the 6-argument form of __(_)start for this.

Rewrite the crtbegin and crtend modules in assembler to make them
compiler independent. Document the interface in README.
2010-08-07 18:01:32 +00:00
mrg 4f893703d8 delete all the a.out csu code. 2010-07-05 21:27:55 +00:00
mrg cba14cb13e look for ${CSU_MACHINE_ARCH}_elf directory first. 2009-12-13 08:03:44 +00:00
wiz 15d53d85be ${MACHINE_ARCH} != "arm32" is always true now, so remove it from an if. 2002-05-02 16:42:53 +00:00
enami 0ebf8f7f72 - Fix typo
- Wrap long line
2001-01-10 13:20:17 +00:00
itojun 99b0df5333 use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix
2001-01-08 08:29:59 +00:00
itojun 264cf8dcf3 sh3 split 2001-01-04 08:01:49 +00:00
simonb 6bf3aa19f9 More trailing white space. 1999-07-02 15:46:05 +00:00
thorpej 216dc58aac Oops, revert previous; thinko. 1999-03-19 22:58:04 +00:00
thorpej faaf65e09f Go ahead and built c++rt0.o on all non-ELF platforms (i.e. including arm32;
the hacks to make this work have been committed).
1999-03-19 22:42:16 +00:00
thorpej 63d06af169 Don't build c++rt.o if ELF. 1999-03-16 23:02:13 +00:00
tv 907d550100 This needs to use C///, not S///. 1999-02-27 21:13:50 +00:00
tv a75b29d92f Clean up mipse[bl]->mips substitution. 1999-02-27 03:27:01 +00:00
drochner 3654576f9f make this build again after the mips->mipse? transition 1999-02-24 15:10:16 +00:00
christos 9c7fb208f8 If object_fmt == elf and we have machine_elf, build that one. 1999-02-03 10:55:12 +00:00
mycroft 1da636920d Do not build on arm32 by default.
This is temporary.
1999-01-21 09:45:28 +00:00
cgd c0ac8bae67 GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
thorpej ff5a472ce7 NetBSD/powerpc doesn't use the "generic" c++rt0.o 1997-04-16 19:43:53 +00:00
explorer 6c8b64fd26 Someone forgot a line continuation character 1997-02-23 21:40:09 +00:00
cgd 3192bd314f turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks 1997-02-23 20:42:24 +00:00
thorpej 5042faf816 RCS id police. 1996-10-18 05:36:42 +00:00
cgd 53ded8ebcb add a hack so that old- and new-toolchain alphas do the right thing:
include bsd.own.mk early on, and if !alpha or if !ELF_TOOLCHAIN,
build c++rt0.o.  ELF alphas don't use the 'normal' C++ runtime startup
routines.  Eventually, there should be better ways to distinguish what
toolchain and object format is in use, and the Alpha C++ startup code
changes should be merged with that used by the other ports.
1996-10-08 00:36:28 +00:00
deraadt fefdca9988 c++ not g++ 1994-01-10 14:09:16 +00:00
pk e5ea148320 Subdirectory g++ contains C++ shared library helper routines. 1994-01-05 21:05:11 +00:00
cgd 318d90d37f use MACHINE_ARCH to pick which crt0 to use. 1993-12-04 22:39:21 +00:00
cgd b1793f25e7 oops; last time i moved stuff, was to the wrong place...
don't use csu.* any more, just use *...
1993-05-18 10:08:43 +00:00
cgd 574bfabf9b move csu.${MACHINE} into a "csu" subdirectory. 1993-05-18 07:48:34 +00:00