diff options
author | DJ Delorie <dj@redhat.com> | 2005-12-14 03:38:27 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-12-14 03:38:27 +0000 |
commit | fbe7cb7681a4def929729940fb298a3c46ecad32 (patch) | |
tree | 1578332d606f49cc256bed7b167614e8f07f41e7 /libgloss/m32c/crtn.S | |
parent | b24dda0b9d0eea3c18de6b2a973b1f33936adcae (diff) | |
download | cygnal-fbe7cb7681a4def929729940fb298a3c46ecad32.tar.gz cygnal-fbe7cb7681a4def929729940fb298a3c46ecad32.tar.bz2 cygnal-fbe7cb7681a4def929729940fb298a3c46ecad32.zip |
* m32c/crt0.S: Add support for preinit, init, and fini arrays, and
.init and .fini processing.
* m32c/crtn.S: Likewise.
* m32c/exit.S: Likewise.
Diffstat (limited to 'libgloss/m32c/crtn.S')
-rw-r--r-- | libgloss/m32c/crtn.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgloss/m32c/crtn.S b/libgloss/m32c/crtn.S index 4bbf858c6..d4e86b8a5 100644 --- a/libgloss/m32c/crtn.S +++ b/libgloss/m32c/crtn.S @@ -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 |