Skip to content

Commit 96a091b

Browse files
Merge #212
212: Add symtab (size info) for all external assembly functions r=japaric a=stianeklund Adds `.size` info for all of the external assembly functions. Fixes #211 Co-authored-by: Stian Eklund <[email protected]>
2 parents e41b273 + 6ef4c37 commit 96a091b

12 files changed

+35
-0
lines changed

asm-cm7-r0p1.s

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ __basepri_max_cm7_r0p1:
1111
bxne lr
1212
cpsie i
1313
bx lr
14+
.size __basepri_max_cm7_r0p1, . - __basepri_max_cm7_r0p1
1415

1516
.section .text.__basepri_w_cm7_r0p1
1617
.global __basepri_w_cm7_r0p1
@@ -25,3 +26,4 @@ __basepri_w_cm7_r0p1:
2526
bxne lr
2627
cpsie i
2728
bx lr
29+
.size __basepri_w_cm7_r0p1, . - __basepri_w_cm7_r0p1

asm-v7.s

+4
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,28 @@
44
__basepri_max:
55
msr BASEPRI_MAX, r0
66
bx lr
7+
.size __basepri_max, . - __basepri_max
78

89
.section .text.__basepri_r
910
.global __basepri_r
1011
.thumb_func
1112
__basepri_r:
1213
mrs r0, BASEPRI
1314
bx lr
15+
.size __basepri_r, . - __basepri_r
1416

1517
.section .text.__basepri_w
1618
.global __basepri_w
1719
.thumb_func
1820
__basepri_w:
1921
msr BASEPRI, r0
2022
bx lr
23+
.size __basepri_w, . - __basepri_w
2124

2225
.section .text.__faultmask
2326
.global __faultmask
2427
.thumb_func
2528
__faultmask:
2629
mrs r0, FAULTMASK
2730
bx lr
31+
.size __faultmask, . - __faultmask

asm-v8-main.s

+4
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,29 @@
44
__msplim_r:
55
mrs r0, MSPLIM
66
bx lr
7+
.size __msplim_r, . - __msplim_r
78

89
.section .text.__msplim_w
910
.global __msplim_w
1011
.thumb_func
1112
__msplim_w:
1213
msr MSPLIM, r0
1314
bx lr
15+
.size __msplim_w, . - __msplim_w
1416

1517
.section .text.__psplim_r
1618
.global __psplim_r
1719
.thumb_func
1820
__psplim_r:
1921
mrs r0, PSPLIM
2022
bx lr
23+
.size __psplim_r, . - __psplim_r
2124

2225
.section .text.__psplim_w
2326
.global __psplim_w
2427
.thumb_func
2528
__psplim_w:
2629
msr PSPLIM, r0
2730
bx lr
31+
.size __psplim_w, . - __psplim_w
2832

asm-v8.s

+5
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,29 @@
44
__tt:
55
tt r0, r0
66
bx lr
7+
.size __tt, . - __tt
78

89
.section .text.__ttt
910
.global __ttt
1011
.thumb_func
1112
__ttt:
1213
ttt r0, r0
1314
bx lr
15+
.size __ttt, . - __ttt
1416

1517
.section .text.__tta
1618
.global __tta
1719
.thumb_func
1820
__tta:
1921
tta r0, r0
2022
bx lr
23+
.size __tta, . - __tta
24+
2125

2226
.section .text.__ttat
2327
.global __ttat
2428
.thumb_func
2529
__ttat:
2630
ttat r0, r0
2731
bx lr
32+
.size __ttat, . - __ttat

asm.s

+20
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@
44
__bkpt:
55
bkpt
66
bx lr
7+
.size __bkpt, . - __bkpt
78

89
.section .text.__control_r
910
.global __control_r
1011
.thumb_func
1112
__control_r:
1213
mrs r0, CONTROL
1314
bx lr
15+
.size __control_r, . - __control_r
1416

1517
.section .text.__control_w
1618
.global __control_w
1719
.thumb_func
1820
__control_w:
1921
msr CONTROL, r0
2022
bx lr
23+
.size __control_w, . - __control_w
2124

2225

2326
.section .text.__cpsid
@@ -26,13 +29,15 @@ __control_w:
2629
__cpsid:
2730
cpsid i
2831
bx lr
32+
.size __cpsid, . - __cpsid
2933

3034
.section .text.__cpsie
3135
.global __cpsie
3236
.thumb_func
3337
__cpsie:
3438
cpsie i
3539
bx lr
40+
.size __cpsie, . - __cpsie
3641

3742
.section .text.__delay
3843
.global __delay
@@ -44,93 +49,108 @@ __delay:
4449
subs r0, #1
4550
bne 1b // Branch to 1 instead of __delay does not generate R_ARM_THM_JUMP8 relocation, which breaks linking on the thumbv6m-none-eabi target
4651
bx lr
52+
.size __delay, . - __delay
4753

4854
.section .text.__dmb
4955
.global __dmb
5056
.thumb_func
5157
__dmb:
5258
dmb 0xF
5359
bx lr
60+
.size __dmb, . - __dmb
5461

5562
.section .text.__dsb
5663
.global __dsb
5764
.thumb_func
5865
__dsb:
5966
dsb 0xF
6067
bx lr
68+
.size __dsb, . - __dsb
6169

6270
.section .text.__isb
6371
.global __isb
6472
.thumb_func
6573
__isb:
6674
isb 0xF
6775
bx lr
76+
.size __isb, . - __isb
6877

6978
.section .text.__msp_r
7079
.global __msp_r
7180
.thumb_func
7281
__msp_r:
7382
mrs r0, MSP
7483
bx lr
84+
.size __msp_r, . - __msp_r
7585

7686
.section .text.__msp_w
7787
.global __msp_w
7888
.thumb_func
7989
__msp_w:
8090
msr MSP, r0
8191
bx lr
92+
.size __msp_w, . - __msp_w
8293

8394
.section .text.__nop
8495
.global __nop
8596
.thumb_func
8697
__nop:
8798
bx lr
99+
.size __nop, . - __nop
88100

89101
.section .text.__primask
90102
.global __primask
91103
.thumb_func
92104
__primask:
93105
mrs r0, PRIMASK
94106
bx lr
107+
.size __primask, . - __primask
95108

96109
.section .text.__psp_r
97110
.global __psp_r
98111
.thumb_func
99112
__psp_r:
100113
mrs r0, PSP
101114
bx lr
115+
.size __psp_r, . - __psp_r
102116

103117
.section .text.__psp_w
104118
.global __psp_w
105119
.thumb_func
106120
__psp_w:
107121
msr PSP, r0
108122
bx lr
123+
.size __psp_w, . - __psp_w
109124

110125
.section .text.__sev
111126
.global __sev
112127
.thumb_func
113128
__sev:
114129
sev
115130
bx lr
131+
.size __sev, . - __sev
116132

117133

118134
.section .text.__udf
119135
.global __udf
120136
.thumb_func
121137
__udf:
122138
udf
139+
.size __udf, . - __udf
123140

124141
.section .text.__wfe
125142
.global __wfe
126143
.thumb_func
127144
__wfe:
128145
wfe
129146
bx lr
147+
.size __wfe, . - __wfe
148+
130149

131150
.section .text.__wfi
132151
.global __wfi
133152
.thumb_func
134153
__wfi:
135154
wfi
155+
.size __wfi, . - __wfi
136156
bx lr

bin/thumbv6m-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi.a

-2 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf.a

-2 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv8m.base-none-eabi.a

0 Bytes
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)