Module Name: src Committed By: martin Date: Fri Aug 10 16:37:31 UTC 2012
Modified Files: src/lib/csu/sparc64: Makefile crt0.c Log Message: Slightly simplify and make position independend. Part of fixing PR port-sparc64/46724. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/csu/sparc64/Makefile cvs rdiff -u -r1.26 -r1.27 src/lib/csu/sparc64/crt0.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/csu/sparc64/Makefile diff -u src/lib/csu/sparc64/Makefile:1.8 src/lib/csu/sparc64/Makefile:1.9 --- src/lib/csu/sparc64/Makefile:1.8 Sat Jul 16 23:07:50 2011 +++ src/lib/csu/sparc64/Makefile Fri Aug 10 16:37:31 2012 @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2011/07/16 23:07:50 mrg Exp $ +# $NetBSD: Makefile,v 1.9 2012/08/10 16:37:31 martin Exp $ -#Uncomment the next line to enable the new .init fallthru CPPFLAGS+= -I${.CURDIR}/../sparc_elf +CFLAGS+= -fPIC ELFSIZE=64 Index: src/lib/csu/sparc64/crt0.c diff -u src/lib/csu/sparc64/crt0.c:1.26 src/lib/csu/sparc64/crt0.c:1.27 --- src/lib/csu/sparc64/crt0.c:1.26 Mon Mar 7 05:09:11 2011 +++ src/lib/csu/sparc64/crt0.c Fri Aug 10 16:37:31 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: crt0.c,v 1.26 2011/03/07 05:09:11 joerg Exp $ */ +/* $NetBSD: crt0.c,v 1.27 2012/08/10 16:37:31 martin Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -45,8 +45,6 @@ */ __asm("\n\ - .data\n\ -__data_start: ! Start of data section\n\ .text\n\ .align 4\n\ .global _start\n\ @@ -55,11 +53,9 @@ __data_start: ! Start of data sectio .register %g2,#scratch\n\ _start:\n\ __start:\n\ - setx __data_start, %o0, %g4 ! Point %g4 to start of data section\n\ - clr %g4 ! egcs thinks this is zero. XXX\n\ + clr %g4 ! XXX depends on memory model used \n\ clr %fp\n\ add %sp, 8*16 + 0x7ff, %o0 ! start of stack\n\ - mov %g1, %o1 ! Cleanup routine\n\ mov %g3, %o1 ! XXXX our rtld uses %g3\n\ mov %g2, %o2 ! XXXX obj from rtld.\n\ ba,pt %icc, ___start ! XXXX jump over the retl egcs 2.96 inserts\n\ @@ -115,7 +111,7 @@ ___start(char **sp, * NOTE: Leave the RCS ID _after_ _start(), in case it gets placed in .text. */ #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: crt0.c,v 1.26 2011/03/07 05:09:11 joerg Exp $"); +__RCSID("$NetBSD: crt0.c,v 1.27 2012/08/10 16:37:31 martin Exp $"); #endif /* LIBC_SCCS and not lint */ #include "common.c"