* 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:
DJ Delorie
2005-12-14 03:38:27 +00:00
parent b24dda0b9d
commit fbe7cb7681
4 changed files with 83 additions and 2 deletions

View File

@@ -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