* m32c/crt0.S: Add support for preinit, init, and fini arrays, and
.init and .fini processing. * m32c/crtn.S: Likewise. * m32c/exit.S: Likewise.
This commit is contained in:
@@ -41,5 +41,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#define W l
|
||||
#endif
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
jsr.a _m32c_run_preinit_array
|
||||
jsr.a _m32c_run_init_array
|
||||
exitd
|
||||
.global __m32c_init_end
|
||||
__m32c_init_end:
|
||||
|
||||
.section .fini,"ax",@progbits
|
||||
|
||||
exitd
|
||||
.global __m32c_fini_end
|
||||
__m32c_fini_end:
|
||||
|
||||
.text
|
||||
|
||||
|
Reference in New Issue
Block a user