Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/arch/sh3 ___start is __dso_hidden, so use CALL_DATUM...



details:   https://anonhg.NetBSD.org/src/rev/13eb695b5cf3
branches:  trunk
changeset: 347513:13eb695b5cf3
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Aug 29 21:27:03 2016 +0000

description:
___start is __dso_hidden, so use CALL_DATUM_LOCAL and drop the PIC
prologue from __start.

diffstat:

 lib/csu/arch/sh3/crt0.S |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r 5a8c2a7278e8 -r 13eb695b5cf3 lib/csu/arch/sh3/crt0.S
--- a/lib/csu/arch/sh3/crt0.S   Mon Aug 29 16:00:10 2016 +0000
+++ b/lib/csu/arch/sh3/crt0.S   Mon Aug 29 21:27:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.5 2016/08/28 13:50:25 christos Exp $ */
+/* $NetBSD: crt0.S,v 1.6 2016/08/29 21:27:03 uwe Exp $ */
 
 /*
  * Copyright (c) 1998 Christos Zoulas
@@ -37,7 +37,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: crt0.S,v 1.5 2016/08/28 13:50:25 christos Exp $")
+RCSID("$NetBSD: crt0.S,v 1.6 2016/08/29 21:27:03 uwe Exp $")
 
 STRONG_ALIAS(_start,__start)
 
@@ -49,7 +49,6 @@
  * proper registers.
  */
 _ENTRY(__start)
-       PIC_PROLOGUE_NOSAVE(.L_got)
        mov.l   .L___start, r0
        mov     r7, r4          ! void (*cleanup)(void)
        mov     r8, r5          ! const Obj_Entry *obj
@@ -57,7 +56,5 @@
         mov    r9, r6          ! struct ps_strings *ps_strings
 
        .p2align 2
-.L_got:
-       PIC_GOT_DATUM
 .L___start:
-       CALL_DATUM(___start, 1b)
+       CALL_DATUM_LOCAL(___start, 1b)



Home | Main Index | Thread Index | Old Index