From 6d7ea52a26bf161e0f1d32e61f87bf0731ee3cc5 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 24 Jun 2003 18:13:35 +0000 Subject: [PATCH] * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call to atexit(). --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/h8300hms/crt0.S | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d1b0e3859..f268a9973 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-06-24 Richard Sandiford + + * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call + to atexit(). + 2003-06-20 Jeff Johnston * configure.host (iq2000): Add tabs. diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S index aa6bed592..8ad6ddc59 100644 --- a/newlib/libc/sys/h8300hms/crt0.S +++ b/newlib/libc/sys/h8300hms/crt0.S @@ -50,7 +50,7 @@ _start: cmp.l er1,er0 blo .Loop #ifdef __ELF__ - mov.l #__fini,r0 + mov.l #__fini,er0 jsr @_atexit #ifdef __SIMULATOR__ jsr @0xcc @@ -84,7 +84,7 @@ _start: cmp.l er1,er0 blo .Loop #ifdef __ELF__ - mov.l #__fini,r0 + mov.l #__fini,er0 jsr @_atexit #ifdef __SIMULATOR__ jsr @0xcc