2003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline support. * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__ flag to support simulator only extensions.
This commit is contained in:
@ -16,8 +16,14 @@ _start:
|
||||
#ifdef __ELF__
|
||||
mov.l #__fini,r0
|
||||
jsr @_atexit
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @__init
|
||||
#else
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @___main
|
||||
#endif
|
||||
jsr @_main
|
||||
@ -45,8 +51,14 @@ _start:
|
||||
#ifdef __ELF__
|
||||
mov.l #__fini,r0
|
||||
jsr @_atexit
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @__init
|
||||
#else
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @___main
|
||||
#endif
|
||||
jsr @_main
|
||||
@ -74,8 +86,14 @@ _start:
|
||||
#ifdef __ELF__
|
||||
mov.l #__fini,r0
|
||||
jsr @_atexit
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @__init
|
||||
#else
|
||||
#ifdef __SIMULATOR__
|
||||
jsr @0xcc
|
||||
#endif
|
||||
jsr @___main
|
||||
#endif
|
||||
jsr @_main
|
||||
|
Reference in New Issue
Block a user