summaryrefslogtreecommitdiffstats
path: root/lib/csu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* the fpu control symbol on sh (__fpscr_values) suddenly becomes localjsg2012-04-121-2/+5
| | | | | | | instead of global with gcc4 and this ends up breaking things in hard to debug ways. So move the definition to csu instead of libgcc. ok miod@
* Pass install the -S option to avoid a window where the target isn'tguenther2011-11-0815-30/+30
| | | | | | | 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@
* Use long calls like we do on hppa, otherwise the function we want to callkettenis2011-09-191-5/+12
| | | | might be unreachable.
* Make sure the stack is properly aligned for using SSE instructions. Whilekettenis2011-08-191-5/+10
| | | | | | | our in-tree compiler will emit code to do this at the start of main(), other compilers might not do that. ok miod@
* On hppa64 we need to use __gp instead of $global$.kettenis2011-07-091-3/+3
|
* enter ia64 for objderaadt2011-07-041-2/+2
|
* Add csu ia64 support.pirofti2011-07-043-0/+213
|
* Implement correct prologue and epilogue for hppa64.jsing2011-04-201-6/+6
| | | | ok kettenis@
* Make sure everything run from .init and .fini sections gets a properly alignedkettenis2011-03-311-2/+3
| | | | | | stack. ok fgsch@
* Make sure everything run from .init and .fini sections gets a properly alignedkettenis2011-03-301-2/+3
| | | | | | stack. ok deraadt@, fgsch@
* crtbeginS.o needs to be buit with -fPIC; with -fpic the relocations for thekettenis2010-12-241-1/+3
| | | | | | | gcc3/4 exception handling related symbols will be truncated causing linker failures when building shared libraries. ok drahn@, deraadt@, miod@
* Since the stack layout changes from gcc3 to gcc4, change the inline asm tokettenis2010-09-121-1/+5
| | | | | | deal with this. ok miod@
* Sprinkle a few __used markers to prevent gcc4 from throwing away essentialkettenis2010-05-019-40/+40
| | | | | | | 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@
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-3/+3
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* Make sure to use 64 bit instructions in the assembly statements (addi -> daddi)miod2009-12-101-8/+4
| | | | | in the prologue; this gives a chance for binaries loaded with their stack over 2GB virtual, to run. Who's your daddi now?
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-2714-29/+23
| | | | | | | 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
* Don't specify mode(SI) attribute for __EH_FRAME_END__ as we havejsg2009-07-142-4/+4
| | | | | | 32 bit ints on OpenBSD. ok kettenis@
* fix rcs ids. ok sthen@martynas2009-06-211-1/+1
|
* Do not break gcc -Z on powerpc. mprotect the got only if it is padded.drahn2009-06-161-15/+34
| | | | | Diff written and tweaked by kurt@ and myself. ok kurt@, now is agood time deraadt@
* Add gcj java class registration hooks for gcc3 elf archs. From NetBSDkurt2009-04-138-8/+98
| | | | | | with minor differences. okay kettenis@ drahn@
* Work-around a gcc3 -g bug causing debug ld.so to crash.kurt2009-03-062-4/+4
| | | | okay kettenis@ drahn@
* Tag ELF shared libraries as OpenBSD.kettenis2009-02-042-2/+6
| | | | ok kurt@, drahn@, miod@
* Re-enable pie support on macppc (still off by default but usablekurt2009-01-142-12/+76
| | | | | | | | | | | | again). Due to the way executable sections are loaded by the kernel, a one page .got section with the blrl instruction may be in the data cache and not flushed causing random crashes upon process startup. Flush the data cache before ___start() jumps there. Also mprotect the .got section to be read/exec instead of read/write/exec. ld.so knows how to cope and static binaries don't write to .got. written by and okay drahn@
* revert -fpie for now, it produces crashing executablesotto2008-11-211-7/+7
|
* fix rcs tag.jsg2008-11-131-1/+1
| | | | From patrick keshishian <sidster@boxsoft.com>
* Compile crt0.o, crtbegin.o and crtend.o with -fpie/-fPIE. This requireskurt2008-11-118-54/+54
| | | | | | gcc with pie support to be built first. ok kettenis@
* adjust asm to be pic compatible. okay kettenis@kurt2008-10-171-3/+6
|
* The recent change to bsd.own.mk to allow PICFLAG to be overridden madekurt2008-10-069-25/+7
| | | | | | | these previously ignored PICFLAG settings become active. Remove PICFLAG overrides to restore -fpic/-fPIC modes. In snaps for a week. okay drahn@
* Remove PICFLAG= setting, it is overridden in bsd.prog.mk. tested on landisk.drahn2008-09-261-4/+1
| | | | Caught and ok kurt@
* Remove separate pic versions of crt0, crtbegin, crtend. Nextkurt2008-07-284-83/+7
| | | | | | release we are taking a different approach. Idea from kettenis@. okay kettenis@ weingart@
* Build pic versions of crt0, crtbegin & crtend for amd64, i386, powerpc,kurt2008-06-254-7/+91
| | | | | sparc64. The rest will come later. okay drahn@ no objection miod@ "Get it in" deraadt@
* Make pic compatiable. From and okay drahn@ no objection miod@kurt2008-06-251-4/+3
| | | | "Slackers!" deraadt@
* More read/write result checking fixes to avoid unsigned comparisons vskrw2008-01-291-2/+2
| | | | | | -1. ok henning@ beck@ ray@
* avoid intermediate files with same name (ie. a.out) for parallel makederaadt2007-10-301-8/+8
| | | | ok miod
* remove "unused variable" warningschl2007-10-171-2/+1
| | | | | | tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
* Add __cxa_atexit() support for gcc3. This provides support for shared object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.millert2007-09-034-4/+72
|
* Set the DN bit in the fpscr upon startup, to prevent faulting when loadingmiod2007-03-131-1/+4
| | | | | | | denormals. This is recommended by the manual, and is necessary for the gdb testsuite to pass; found by, discussed with, and ok kettenis@ (be sure to make includes before recompiling csu)
* Move landisk to hardware floating point. At the moment the FPU context ismiod2007-03-021-1/+9
| | | | | | | | | | | | | | | always saved upon context switches, as FPU registers are heavily used for long long computations (don't ask). Gcc default to -m4. Credits to drahn@ otto@ and deraadt@ for feedback and help testing. Upgrade procedure if you don't want to use the damn snapshots: - build and install new kernel, reboot off it - build new gcc, do not install it yet - make includes - install new gcc - build and install lib/csu and lib/libc - make build
* build obj in shdrahn2006-11-091-2/+2
|
* Preliminary userland bits for OpenBSD/landisk, many things coming frommiod2006-10-103-0/+253
| | | | NetBSD.
* Revert temporary hack.kettenis2005-09-252-131/+3
| | | | ok deraadt@
* zap rcsid. Okay deraadt@, krw@espie2005-08-049-45/+9
|
* hppa64 bits cloned form hppamickey2005-04-013-0/+253
|
* Change __register_frame_info into a weakly defined symbol.kettenis2004-10-262-10/+16
| | | | ok drahn@, pval@, deraadt@
* Temporary hack to make alpha build again.kettenis2004-10-212-3/+131
| | | | ok drahn@, deraadt@
* Add support for DWARF2 exception handling.kettenis2004-10-104-4/+40
| | | | ok drahn@, millert@
* add mips64 to the list. ok derradt.pefo2004-09-101-2/+2
|
* Shared libs now works. Changes here for ABI64.pefo2004-09-092-30/+59
|
* kill useless __main() symbol which clashes w/ certain evil software inpvalchev2004-08-231-4/+2
| | | | the ports tree; ok pefo
* csu stuff for sgi et alpefo2004-08-063-0/+308
|