summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/avr32/crti.S
blob: 69b387cb85f8ead5bbede8b300021e4a89babef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

       .section .init
       .align  2
       .global _init
       .type   _init, @function
_init:
       stm     --sp, r6, lr
       lddpc   r6, 2f
1:     rsub    r6, pc
       rjmp    3f
       .align  2
2:     .long   1b - _GLOBAL_OFFSET_TABLE_
3:

       .section .fini
       .align  2
       .global _fini
       .type   _fini, @function
_fini:
       stm     --sp, r6, lr
       lddpc   r6, 2f
1:     rsub    r6, pc
       rjmp    3f
       .align  2
2:     .long   1b - _GLOBAL_OFFSET_TABLE_
3: