Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/arch/m68k Deal with m68010 not having bsrl so usr js...



details:   https://anonhg.NetBSD.org/src/rev/d7ab86748ab2
branches:  trunk
changeset: 788766:d7ab86748ab2
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jul 19 06:26:41 2013 +0000

description:
Deal with m68010 not having bsrl so usr jsr on !__pic__

diffstat:

 lib/csu/arch/m68k/crtbegin.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 9b0280d68389 -r d7ab86748ab2 lib/csu/arch/m68k/crtbegin.h
--- a/lib/csu/arch/m68k/crtbegin.h      Fri Jul 19 05:05:59 2013 +0000
+++ b/lib/csu/arch/m68k/crtbegin.h      Fri Jul 19 06:26:41 2013 +0000
@@ -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");



Home | Main Index | Thread Index | Old Index