Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so/arch/m68k Make __SVR4_ABI__ optional.



details:   https://anonhg.NetBSD.org/src/rev/c8b8ce05afcc
branches:  trunk
changeset: 477248:c8b8ce05afcc
user:      itohy <itohy%NetBSD.org@localhost>
date:      Mon Oct 18 03:26:53 1999 +0000

description:
Make __SVR4_ABI__ optional.

diffstat:

 libexec/ld.elf_so/arch/m68k/rtld_start.S |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 15967e643163 -r c8b8ce05afcc libexec/ld.elf_so/arch/m68k/rtld_start.S
--- a/libexec/ld.elf_so/arch/m68k/rtld_start.S  Mon Oct 18 03:24:28 1999 +0000
+++ b/libexec/ld.elf_so/arch/m68k/rtld_start.S  Mon Oct 18 03:26:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld_start.S,v 1.2 1999/08/23 09:13:25 kleink Exp $    */
+/*     $NetBSD: rtld_start.S,v 1.3 1999/10/18 03:26:53 itohy Exp $     */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -62,7 +62,11 @@
        movel   (16+4)(%sp),-(%sp)      | push obj
        jbsr    _rtld_bind@PLTPC        | %a0 = _rtld_bind(obj, reloff)
        addql   #8,%sp                  | pop args
+#ifdef __SVR4_ABI__
        movel   %a0,(16+4)(%sp)         | write fake `return' address over obj
+#else
+       movel   %d0,(16+4)(%sp)         | write fake `return' address over obj
+#endif
        moveml  (%sp)+,%d0-%d1/%a0-%a1  | restore caller-saved registers
        addql   #4,%sp                  | skip reloff
        rts                             | `return' right into function



Home | Main Index | Thread Index | Old Index