diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-09-04 19:05:44 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-09-04 19:05:44 +0000 |
commit | 63c17b54266cd051776eb1448797921883991b61 (patch) | |
tree | e5867fe25f08f8c0b0a3939f4e5bd4d1d0f26d83 /newlib | |
parent | fb7369b5159e73fce10a0cc52c1c3b6dfba5f07d (diff) | |
download | newlib-63c17b54266cd051776eb1448797921883991b61.zip newlib-63c17b54266cd051776eb1448797921883991b61.tar.gz newlib-63c17b54266cd051776eb1448797921883991b61.tar.bz2 |
2001-09-04 Jason Merrill <jason_merrill@redhat.com>
* libc/sys/h8300hms/crt0.S: Support ELF initialization.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/sys/h8300hms/crt0.S | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 83ec9b4..699e318 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2001-09-04 Jason Merrill <jason_merrill@redhat.com> + + * libc/sys/h8300hms/crt0.S: Support ELF initialization. + 2001-09-03 Corinna Vinschen <corinna@vinschen.de> * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S index 13d9075..b67c103 100644 --- a/newlib/libc/sys/h8300hms/crt0.S +++ b/newlib/libc/sys/h8300hms/crt0.S @@ -13,7 +13,13 @@ _start: adds #2,r0 cmp r1,r0 blo .loop +#ifdef __ELF__ + mov.w #__fini,r0 + jsr @_atexit + jsr @__init +#else jsr @___main +#endif jsr @_main jsr @_exit @@ -36,7 +42,13 @@ _start: adds #2,er0 cmp.l er1,er0 blo .loop +#ifdef __ELF__ + mov.w #__fini,r0 + jsr @_atexit + jsr @__init +#else jsr @___main +#endif jsr @_main jsr @_exit @@ -59,7 +71,13 @@ _start: adds #2,er0 cmp.l er1,er0 blo .loop +#ifdef __ELF__ + mov.w #__fini,r0 + jsr @_atexit + jsr @__init +#else jsr @___main +#endif jsr @_main jsr @_exit |