2001-03-30 Richard Henderson <rth@redhat.com>

Eric Christopher  <echristo@redhat.com>

	* mips/crt0.S: Fix for .init/.fini sections.
This commit is contained in:
Eric Christopher 2001-08-31 20:18:49 +00:00
parent dc8c4c68b7
commit 0a7908a68e
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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> 2001-08-30 Richard Henderson <rth@redhat.com>
Eric Christopher <echristo@redhat.com> Eric Christopher <echristo@redhat.com>

View File

@ -116,7 +116,6 @@ _start:
.globl get_mem_info .text .globl get_mem_info .text
.globl __stack .globl __stack
.globl __global .globl __global
.globl zerobss
.ent zerobss .ent zerobss
zerobss: zerobss:
LA (v0, _fbss) LA (v0, _fbss)
@ -163,10 +162,10 @@ zerobss:
*/ */
.globl hardware_init_hook .text .globl hardware_init_hook .text
.globl software_init_hook .text .globl software_init_hook .text
.globl __do_global_dtors .text .type _fini,@function
.type _init,@function
.globl atexit .text .globl atexit .text
.globl exit .text .globl exit .text
.globl init
.ent init .ent init
init: init:
LA (t9, hardware_init_hook) # init the hardware if needed LA (t9, hardware_init_hook) # init the hardware if needed
@ -181,7 +180,7 @@ init:
jal t9 jal t9
nop nop
7: 7:
LA (a0, __do_global_dtors) LA (a0, _fini)
jal atexit jal atexit
nop nop
@ -194,6 +193,9 @@ init:
nop nop
#endif #endif
jal _init # run global constructors
nop
move a0,zero # set argc to 0 move a0,zero # set argc to 0
jal main # call the program start function jal main # call the program start function
nop nop