Eric Christopher <echristo@redhat.com>
* mips/crt0.S: Fix for .init/.fini sections.
+2001-03-30 Richard Henderson <rth@redhat.com>
+ Eric Christopher <echristo@redhat.com>
+
+ * mips/crt0.S: Fix for .init/.fini sections.
+
2001-08-30 Richard Henderson <rth@redhat.com>
Eric Christopher <echristo@redhat.com>
.globl get_mem_info .text
.globl __stack
.globl __global
- .globl zerobss
.ent zerobss
zerobss:
LA (v0, _fbss)
*/
.globl hardware_init_hook .text
.globl software_init_hook .text
- .globl __do_global_dtors .text
+ .type _fini,@function
+ .type _init,@function
.globl atexit .text
.globl exit .text
- .globl init
.ent init
init:
LA (t9, hardware_init_hook) # init the hardware if needed
jal t9
nop
7:
- LA (a0, __do_global_dtors)
+ LA (a0, _fini)
jal atexit
nop
nop
#endif
+ jal _init # run global constructors
+ nop
+
move a0,zero # set argc to 0
jal main # call the program start function
nop