Skip to content

Commit 0c35d94

Browse files
committed
Add symtab (size info) for all external assembly functions
Fixes #211
1 parent e41b273 commit 0c35d94

12 files changed

+35
-0
lines changed

asm-cm7-r0p1.s

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.section .text.__basepri_max_cm7_r0p1
22
.global __basepri_max_cm7_r0p1
3+
.size __basepri_max_cm7_r0p1, . - __basepri_max_cm7_r0p1
34
.syntax unified
45
.thumb_func
56
__basepri_max_cm7_r0p1:
@@ -14,6 +15,7 @@ __basepri_max_cm7_r0p1:
1415

1516
.section .text.__basepri_w_cm7_r0p1
1617
.global __basepri_w_cm7_r0p1
18+
.size __basepri_w_cm7_r0p1, . - __basepri_w_cm7_r0p1
1719
.syntax unified
1820
.thumb_func
1921
__basepri_w_cm7_r0p1:

asm-v7.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
.section .text.__basepri_max
22
.global __basepri_max
3+
.size __basepri_max, . - __basepri_max
34
.thumb_func
45
__basepri_max:
56
msr BASEPRI_MAX, r0
67
bx lr
78

89
.section .text.__basepri_r
910
.global __basepri_r
11+
.size __basepri_r, . - __basepri_r
1012
.thumb_func
1113
__basepri_r:
1214
mrs r0, BASEPRI
1315
bx lr
1416

1517
.section .text.__basepri_w
1618
.global __basepri_w
19+
.size __basepri_w, . - __basepri_w
1720
.thumb_func
1821
__basepri_w:
1922
msr BASEPRI, r0
2023
bx lr
2124

2225
.section .text.__faultmask
2326
.global __faultmask
27+
.size __faultmask, . - __faultmask
2428
.thumb_func
2529
__faultmask:
2630
mrs r0, FAULTMASK

asm-v8-main.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
.section .text.__msplim_r
22
.global __msplim_r
3+
.size __msplim_r, . - __msplim_r
34
.thumb_func
45
__msplim_r:
56
mrs r0, MSPLIM
67
bx lr
78

89
.section .text.__msplim_w
910
.global __msplim_w
11+
.size __msplim_w, . - __msplim_w
1012
.thumb_func
1113
__msplim_w:
1214
msr MSPLIM, r0
1315
bx lr
1416

1517
.section .text.__psplim_r
1618
.global __psplim_r
19+
.size __psplim_r, . - __psplim_r
1720
.thumb_func
1821
__psplim_r:
1922
mrs r0, PSPLIM
2023
bx lr
2124

2225
.section .text.__psplim_w
2326
.global __psplim_w
27+
.size __psplim_w, . - __psplim_w
2428
.thumb_func
2529
__psplim_w:
2630
msr PSPLIM, r0

asm-v8.s

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
.section .text.__tt
22
.global __tt
3+
.size __tt, . - __tt
34
.thumb_func
45
__tt:
56
tt r0, r0
67
bx lr
78

89
.section .text.__ttt
910
.global __ttt
11+
.size __ttt, . - __ttt
1012
.thumb_func
1113
__ttt:
1214
ttt r0, r0
1315
bx lr
1416

1517
.section .text.__tta
1618
.global __tta
19+
.size __tta, . - __tta
1720
.thumb_func
1821
__tta:
1922
tta r0, r0
2023
bx lr
2124

25+
2226
.section .text.__ttat
2327
.global __ttat
28+
.size __ttat, . - __ttat
2429
.thumb_func
2530
__ttat:
2631
ttat r0, r0

asm.s

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
.section .text.__bkpt
22
.global __bkpt
3+
.size __bkpt, . - __bkpt
34
.thumb_func
45
__bkpt:
56
bkpt
67
bx lr
78

89
.section .text.__control_r
910
.global __control_r
11+
.size __control_r, . - __control_r
1012
.thumb_func
1113
__control_r:
1214
mrs r0, CONTROL
1315
bx lr
1416

1517
.section .text.__control_w
1618
.global __control_w
19+
.size __control_w, . - __control_w
1720
.thumb_func
1821
__control_w:
1922
msr CONTROL, r0
@@ -22,20 +25,23 @@ __control_w:
2225

2326
.section .text.__cpsid
2427
.global __cpsid
28+
.size __cpsid, . - __cpsid
2529
.thumb_func
2630
__cpsid:
2731
cpsid i
2832
bx lr
2933

3034
.section .text.__cpsie
3135
.global __cpsie
36+
.size __cpsie, . - __cpsie
3237
.thumb_func
3338
__cpsie:
3439
cpsie i
3540
bx lr
3641

3742
.section .text.__delay
3843
.global __delay
44+
.size __delay, . - __delay
3945
.syntax unified
4046
.thumb_func
4147
__delay:
@@ -47,68 +53,78 @@ __delay:
4753

4854
.section .text.__dmb
4955
.global __dmb
56+
.size __dmb, . - __dmb
5057
.thumb_func
5158
__dmb:
5259
dmb 0xF
5360
bx lr
5461

5562
.section .text.__dsb
5663
.global __dsb
64+
.size __dsb, . - __dsb
5765
.thumb_func
5866
__dsb:
5967
dsb 0xF
6068
bx lr
6169

6270
.section .text.__isb
6371
.global __isb
72+
.size __isb, . - __isb
6473
.thumb_func
6574
__isb:
6675
isb 0xF
6776
bx lr
6877

6978
.section .text.__msp_r
7079
.global __msp_r
80+
.size __msp_r, . - __msp_r
7181
.thumb_func
7282
__msp_r:
7383
mrs r0, MSP
7484
bx lr
7585

7686
.section .text.__msp_w
7787
.global __msp_w
88+
.size __msp_w, . - __msp_w
7889
.thumb_func
7990
__msp_w:
8091
msr MSP, r0
8192
bx lr
8293

8394
.section .text.__nop
8495
.global __nop
96+
.size __nop, . - __nop
8597
.thumb_func
8698
__nop:
8799
bx lr
88100

89101
.section .text.__primask
90102
.global __primask
103+
.size __primask, . - __primask
91104
.thumb_func
92105
__primask:
93106
mrs r0, PRIMASK
94107
bx lr
95108

96109
.section .text.__psp_r
97110
.global __psp_r
111+
.size __psp_r, . - __psp_r
98112
.thumb_func
99113
__psp_r:
100114
mrs r0, PSP
101115
bx lr
102116

103117
.section .text.__psp_w
104118
.global __psp_w
119+
.size __psp_w, . - __psp_w
105120
.thumb_func
106121
__psp_w:
107122
msr PSP, r0
108123
bx lr
109124

110125
.section .text.__sev
111126
.global __sev
127+
.size __sev, . - __sev
112128
.thumb_func
113129
__sev:
114130
sev
@@ -117,19 +133,23 @@ __sev:
117133

118134
.section .text.__udf
119135
.global __udf
136+
.size __udf, . - __udf
120137
.thumb_func
121138
__udf:
122139
udf
123140

124141
.section .text.__wfe
125142
.global __wfe
143+
.size __wfe, . - __wfe
126144
.thumb_func
127145
__wfe:
128146
wfe
129147
bx lr
130148

149+
131150
.section .text.__wfi
132151
.global __wfi
152+
.size __wfi, . - __wfi
133153
.thumb_func
134154
__wfi:
135155
wfi

bin/thumbv6m-none-eabi.a

2.93 KB
Binary file not shown.

bin/thumbv7em-none-eabi.a

5.04 KB
Binary file not shown.

bin/thumbv7em-none-eabihf.a

5.04 KB
Binary file not shown.

bin/thumbv7m-none-eabi.a

4.07 KB
Binary file not shown.

bin/thumbv8m.base-none-eabi.a

4 KB
Binary file not shown.

bin/thumbv8m.main-none-eabi.a

-2 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabihf.a

-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)