summaryrefslogtreecommitdiff
path: root/lib/csu/common/Makefile.inc
AgeCommit message (Collapse)Author
2018-12-28Undo previous; breaks macppc/m68k (at least)christos
2018-12-27Enable initfini array support for everyone.christos
2018-11-26Do not pass the main object handle from the assembler startup stub tojoerg
the common ___start routine. It's only used for a pointless magic version check. Thanks to martin@ for testing various architectures.
2016-06-01Revert -O1 hack for GCC 5.3, replaced by workaround in the code.joerg
2016-05-10We need the -O1 hack (for gcc 5.3) for crtbegin.c as well.martin
Works around PR toolchain/51121.
2016-05-01Revert previous (fallout is more subtle but there).martin
Rework the conditionon so it depends on .S existence instead of an arch list.
2016-04-30Gcc 5.3 seems to do fine compiling this for sparc64, so exclude itmartin
from the -O1 hack
2016-04-04For the benefit of compilers not using our native C runtime environment,martin
install a "sysident.o" file providing the note identifying NetBSD executables (and marking the currently installed version).
2016-03-29crt0-common.c is miscompiled by gcc 5.3 on evbarm with -O2 so use -O1. Doskrll
this for all non-x86 arches.
2016-03-27add a hack for GCC 5 and non-x86 platforms:mrg
build crtbeginS.o with -O1 as GCC tries to be very smart with the __DTOR_LIST__ as it believes it knows the size of the array at compile time (which is not true until link time). on SPARC and MIPS, the result was emitting a call to 0. technically, i believe that GCC isn't "wrong" to make this choice, as the array is declared with a well-known initialiser size in the crtbegin.c compilation unit, and we have noticed that the libgcc version of this code has some hacks added, most likely to avoid being bitten by this optimisation. this makes sshd work for me on earm and sparc with GCC 5.
2014-03-04Add GENASSYM_CPPFLAGS in two more places.joerg
2014-01-11Using ${LD} -x screws up BE arm. Use ${OBJCOPY} ${OBJCOPYLIBFLAGS} insteadmatt
so the $a/$t/$d symbols are preserved.
2013-11-17Simplify previous by using CSU_MACHINE_ARCH. Hint from Takeshi Nakayama.martin
2013-11-16We do not want to build the code model markes when creating the 32bitmartin
compat libs for sparc64
2013-11-14On sparc64: create additional "marker" object files, that can be used by themartin
compiler to encode the used code model in binaries.
2013-11-11Explicitly depend on sys/param.h to pick up __NetBSD_Version changes.joerg
2013-09-18Fix previous: use PICFLAGS for crtbeginS.ouwe
Should unbreak sh3 builds. XXX: PICFLAGS is defined in bsd.lib.mk which lib/csu does not use. For now supply a local definition. joerg@, please fix appropriately.
2013-09-12Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is smalljoerg
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-10Add support for a NetBSD MARCH elf note to record the MACHINE_ARCH formatt
which a program was compiled.
2013-08-05Alpha needs crtfm.o for USE_COMPILERCRTSTUFF=nomatt
2013-07-18Only supplie -fPIE to crtbegin.c if MKPIC is yes.matt
2013-07-17Use -fPIE for crtbegin.o (instead of -fpie).martin
Fixes linking the firefox js shell. Ok: joerg@
2013-07-05Only install crtbeginS.o, crtbeginT.o and crtendS.o when MKPIC=yes.joerg
2013-06-27Switch arm, earm, powerpc to use crtbegin.cmatt
Use -fpie for crtbegin.
2013-06-27Add -fPIC to compile of crtbeginS.omatt
2013-06-25Reorder to avoid !existsmatt
Add a crtbegin.h dependency
2013-06-22Add a common crtbegin.c file and use a machine dependent crtbegin.h tomatt
fill in .init/.fini. Add mips support for USE_COMPILERCRTSTUFF=no (compiled only)
2013-06-22Allow crtbegin to be a C file.matt
2012-03-25Don't pass assembler flags to genassym, it doesn't compile.joerg
2012-01-31Move crt0.S in front of crt0-common.c when building crt0.o and gcrt0.o.uwe
Reading disassembly is easier when the asm crt0.S trampoline is at the start, not hidden behind the C code in crt0-common.c.
2012-01-31Hmm, funny. I wonder why and how did emacs VC managed to adduwe
Warning: Permanently added the RSA host key for IP address '...' to the list of known hosts. to the committed file. (hi, new cvs!)
2012-01-31Use -DPIC to compile crtbeginS.o since that's what <machine/asm.h>uwe
headers check.
2011-01-31use of .PARSEDIR just doesn't work with .OBJDIR, replace with .CURDIRdrochner
2010-12-07Build assembler sources with assembler compile rules.joerg
2010-08-07Switch i386 and x86_64 to the new CRT layout. The crt0.c body is sharedjoerg
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.