Module Name: src
Committed By: matt
Date: Fri Jul 19 06:26:41 UTC 2013
Modified Files:
src/lib/csu/arch/m68k: crtbegin.h
Log Message:
Deal with m68010 not having bsrl so usr jsr on !__pic__
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/csu/arch/m68k/crtbegin.h
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/arch/m68k/crtbegin.h
diff -u src/lib/csu/arch/m68k/crtbegin.h:1.2 src/lib/csu/arch/m68k/crtbegin.h:1.3
--- src/lib/csu/arch/m68k/crtbegin.h:1.2 Thu Jul 18 18:43:04 2013
+++ src/lib/csu/arch/m68k/crtbegin.h Fri Jul 19 06:26:41 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: crtbegin.h,v 1.2 2013/07/18 18:43:04 matt Exp $ */
+/* $NetBSD: crtbegin.h,v 1.3 2013/07/19 06:26:41 matt Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,9 +29,17 @@
*/
__asm( ".pushsection .init"
+#ifdef __pic__
+"\n\t" "bsrl __do_global_ctors_aux"
+#else
"\n\t" "jsr __do_global_ctors_aux"
+#endif
"\n\t" ".popsection");
__asm( ".pushsection .fini"
+#ifdef __pic__
+"\n\t" "bsrl __do_global_ctors_aux"
+#else
"\n\t" "jsr __do_global_dtors_aux"
+#endif
"\n\t" ".popsection");