summaryrefslogtreecommitdiff
path: root/lib/csu
AgeCommit message (Collapse)Author
2009-06-21fix rcs ids. ok sthen@Martynas Venckus
2009-06-16Do not break gcc -Z on powerpc. mprotect the got only if it is padded.Dale Rahn
Diff written and tweaked by kurt@ and myself. ok kurt@, now is agood time deraadt@
2009-04-13Add gcj java class registration hooks for gcc3 elf archs. From NetBSDKurt Miller
with minor differences. okay kettenis@ drahn@
2009-03-06Work-around a gcc3 -g bug causing debug ld.so to crash.Kurt Miller
okay kettenis@ drahn@
2009-02-04Tag ELF shared libraries as OpenBSD.Mark Kettenis
ok kurt@, drahn@, miod@
2009-01-14Re-enable pie support on macppc (still off by default but usableKurt Miller
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@
2008-11-21revert -fpie for now, it produces crashing executablesOtto Moerbeek
2008-11-13fix rcs tag.Jonathan Gray
From patrick keshishian <sidster@boxsoft.com>
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-17adjust asm to be pic compatible. okay kettenis@Kurt Miller
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@
2008-09-26Remove PICFLAG= setting, it is overridden in bsd.prog.mk. tested on landisk.Dale Rahn
Caught and ok kurt@
2008-07-28Remove separate pic versions of crt0, crtbegin, crtend. NextKurt Miller
release we are taking a different approach. Idea from kettenis@. okay kettenis@ weingart@
2008-06-25Build pic versions of crt0, crtbegin & crtend for amd64, i386, powerpc,Kurt Miller
sparc64. The rest will come later. okay drahn@ no objection miod@ "Get it in" deraadt@
2008-06-25Make pic compatiable. From and okay drahn@ no objection miod@Kurt Miller
"Slackers!" deraadt@
2008-01-29More read/write result checking fixes to avoid unsigned comparisons vsKenneth R Westerback
-1. ok henning@ beck@ ray@
2007-10-30avoid intermediate files with same name (ie. a.out) for parallel makeTheo de Raadt
ok miod
2007-10-17remove "unused variable" warningsCharles Longeau
tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
2007-09-03Add __cxa_atexit() support for gcc3. This provides support for shared ↵Todd C. Miller
object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
2007-03-13Set the DN bit in the fpscr upon startup, to prevent faulting when loadingMiod Vallat
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)
2007-03-02Move landisk to hardware floating point. At the moment the FPU context isMiod Vallat
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
2006-11-09build obj in shDale Rahn
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2005-09-25Revert temporary hack.Mark Kettenis
ok deraadt@
2005-08-04zap rcsid. Okay deraadt@, krw@Marc Espie
2005-04-01hppa64 bits cloned form hppaMichael Shalayeff
2004-10-26Change __register_frame_info into a weakly defined symbol.Mark Kettenis
ok drahn@, pval@, deraadt@
2004-10-21Temporary hack to make alpha build again.Mark Kettenis
ok drahn@, deraadt@
2004-10-10Add support for DWARF2 exception handling.Mark Kettenis
ok drahn@, millert@
2004-09-10add mips64 to the list. ok derradt.Per Fogelstrom
2004-09-09Shared libs now works. Changes here for ABI64.Per Fogelstrom
2004-08-23kill useless __main() symbol which clashes w/ certain evil software inPeter Valchev
the ports tree; ok pefo
2004-08-06csu stuff for sgi et alPer Fogelstrom
2004-07-24New, working, profiling code for m88k.Miod Vallat
2004-07-07The -DPIC flag must be passed when building crtbeginS.o/crtendS.o howeverDale Rahn
using PICFLAGS is not the proper way to do that. Put it directly in the build script. Fixes a problem with upcoming PICFLAG. ok deraadt@
2004-06-01do not need sh_func_adrs w/ gcc3 no moreMichael Shalayeff
2004-05-26better code for calling ctorsMichael Shalayeff
2004-02-27change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyTheo de Raadt
reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
2004-02-09Proper PIC support in arm startup files.Dale Rahn
2004-02-01No multi-line strings, to please gcc3. No functional change.Miod Vallat
2004-02-01link into build. make obj is safe in arm dir.Dale Rahn
2004-02-01tag..Dale Rahn
2004-02-01startup files for arm. Partially borrowed from NetBSD.Dale Rahn
2004-01-28for make obj, enter x86_64; mickey okTheo de Raadt
2004-01-28things for amd64; from art@Michael Shalayeff
2004-01-26add finalized guard to destructor calls, to prevent multiple calls.Marc Espie
stop most kde apps from burping all over the place on exit, which means that, somehow, our destructors get registered twice... :-( Okay drahn@
2004-01-26small clean-up: typedef to desambiguate const, prototypes...Marc Espie
ok drahn@, some time ago.
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@
2004-01-05Do not have non-dynamic crt0 depend upon libc's strrchr() function on a.out.Miod Vallat
2004-01-04kill multi-line string; ok miodPeter Valchev