Skip to content

Commit 28de254

Browse files
committed
fixup! Add symtab (size info) for all external assembly functions
1 parent 392eef8 commit 28de254

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

asm-cm7-r0p1.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.section .text.__basepri_max_cm7_r0p1
22
.global __basepri_max_cm7_r0p1
3-
.size __basepri_max_cm7_r0p1, . - __basepri_max_cm7_r0p1
43
.syntax unified
54
.thumb_func
65
__basepri_max_cm7_r0p1:
@@ -12,10 +11,10 @@ __basepri_max_cm7_r0p1:
1211
bxne lr
1312
cpsie i
1413
bx lr
14+
.size __basepri_max_cm7_r0p1, . - __basepri_max_cm7_r0p1
1515

1616
.section .text.__basepri_w_cm7_r0p1
1717
.global __basepri_w_cm7_r0p1
18-
.size __basepri_w_cm7_r0p1, . - __basepri_w_cm7_r0p1
1918
.syntax unified
2019
.thumb_func
2120
__basepri_w_cm7_r0p1:
@@ -27,3 +26,4 @@ __basepri_w_cm7_r0p1:
2726
bxne lr
2827
cpsie i
2928
bx lr
29+
.size __basepri_w_cm7_r0p1, . - __basepri_w_cm7_r0p1

asm-v7.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
.section .text.__basepri_max
22
.global __basepri_max
3-
.size __basepri_max, . - __basepri_max
43
.thumb_func
54
__basepri_max:
65
msr BASEPRI_MAX, r0
76
bx lr
7+
.size __basepri_max, . - __basepri_max
88

99
.section .text.__basepri_r
1010
.global __basepri_r
11-
.size __basepri_r, . - __basepri_r
1211
.thumb_func
1312
__basepri_r:
1413
mrs r0, BASEPRI
1514
bx lr
15+
.size __basepri_r, . - __basepri_r
1616

1717
.section .text.__basepri_w
1818
.global __basepri_w
19-
.size __basepri_w, . - __basepri_w
2019
.thumb_func
2120
__basepri_w:
2221
msr BASEPRI, r0
2322
bx lr
23+
.size __basepri_w, . - __basepri_w
2424

2525
.section .text.__faultmask
2626
.global __faultmask
27-
.size __faultmask, . - __faultmask
2827
.thumb_func
2928
__faultmask:
3029
mrs r0, FAULTMASK
3130
bx lr
31+
.size __faultmask, . - __faultmask

asm-v8-main.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
.section .text.__msplim_r
22
.global __msplim_r
3-
.size __msplim_r, . - __msplim_r
43
.thumb_func
54
__msplim_r:
65
mrs r0, MSPLIM
76
bx lr
7+
.size __msplim_r, . - __msplim_r
88

99
.section .text.__msplim_w
1010
.global __msplim_w
11-
.size __msplim_w, . - __msplim_w
1211
.thumb_func
1312
__msplim_w:
1413
msr MSPLIM, r0
1514
bx lr
15+
.size __msplim_w, . - __msplim_w
1616

1717
.section .text.__psplim_r
1818
.global __psplim_r
19-
.size __psplim_r, . - __psplim_r
2019
.thumb_func
2120
__psplim_r:
2221
mrs r0, PSPLIM
2322
bx lr
23+
.size __psplim_r, . - __psplim_r
2424

2525
.section .text.__psplim_w
2626
.global __psplim_w
27-
.size __psplim_w, . - __psplim_w
2827
.thumb_func
2928
__psplim_w:
3029
msr PSPLIM, r0
3130
bx lr
31+
.size __psplim_w, . - __psplim_w
3232

asm-v8.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
.section .text.__tt
22
.global __tt
3-
.size __tt, . - __tt
43
.thumb_func
54
__tt:
65
tt r0, r0
76
bx lr
7+
.size __tt, . - __tt
88

99
.section .text.__ttt
1010
.global __ttt
11-
.size __ttt, . - __ttt
1211
.thumb_func
1312
__ttt:
1413
ttt r0, r0
1514
bx lr
15+
.size __ttt, . - __ttt
1616

1717
.section .text.__tta
1818
.global __tta
19-
.size __tta, . - __tta
2019
.thumb_func
2120
__tta:
2221
tta r0, r0
2322
bx lr
23+
.size __tta, . - __tta
2424

2525

2626
.section .text.__ttat
2727
.global __ttat
28-
.size __ttat, . - __ttat
2928
.thumb_func
3029
__ttat:
3130
ttat r0, r0
3231
bx lr
32+
.size __ttat, . - __ttat

asm.s

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
11
.section .text.__bkpt
22
.global __bkpt
3-
.size __bkpt, . - __bkpt
43
.thumb_func
54
__bkpt:
65
bkpt
76
bx lr
7+
.size __bkpt, . - __bkpt
88

99
.section .text.__control_r
1010
.global __control_r
11-
.size __control_r, . - __control_r
1211
.thumb_func
1312
__control_r:
1413
mrs r0, CONTROL
1514
bx lr
15+
.size __control_r, . - __control_r
1616

1717
.section .text.__control_w
1818
.global __control_w
19-
.size __control_w, . - __control_w
2019
.thumb_func
2120
__control_w:
2221
msr CONTROL, r0
2322
bx lr
23+
.size __control_w, . - __control_w
2424

2525

2626
.section .text.__cpsid
2727
.global __cpsid
28-
.size __cpsid, . - __cpsid
2928
.thumb_func
3029
__cpsid:
3130
cpsid i
3231
bx lr
32+
.size __cpsid, . - __cpsid
3333

3434
.section .text.__cpsie
3535
.global __cpsie
36-
.size __cpsie, . - __cpsie
3736
.thumb_func
3837
__cpsie:
3938
cpsie i
4039
bx lr
40+
.size __cpsie, . - __cpsie
4141

4242
.section .text.__delay
4343
.global __delay
44-
.size __delay, . - __delay
4544
.syntax unified
4645
.thumb_func
4746
__delay:
@@ -50,107 +49,108 @@ __delay:
5049
subs r0, #1
5150
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
5251
bx lr
52+
.size __delay, . - __delay
5353

5454
.section .text.__dmb
5555
.global __dmb
56-
.size __dmb, . - __dmb
5756
.thumb_func
5857
__dmb:
5958
dmb 0xF
6059
bx lr
60+
.size __dmb, . - __dmb
6161

6262
.section .text.__dsb
6363
.global __dsb
64-
.size __dsb, . - __dsb
6564
.thumb_func
6665
__dsb:
6766
dsb 0xF
6867
bx lr
68+
.size __dsb, . - __dsb
6969

7070
.section .text.__isb
7171
.global __isb
72-
.size __isb, . - __isb
7372
.thumb_func
7473
__isb:
7574
isb 0xF
7675
bx lr
76+
.size __isb, . - __isb
7777

7878
.section .text.__msp_r
7979
.global __msp_r
80-
.size __msp_r, . - __msp_r
8180
.thumb_func
8281
__msp_r:
8382
mrs r0, MSP
8483
bx lr
84+
.size __msp_r, . - __msp_r
8585

8686
.section .text.__msp_w
8787
.global __msp_w
88-
.size __msp_w, . - __msp_w
8988
.thumb_func
9089
__msp_w:
9190
msr MSP, r0
9291
bx lr
92+
.size __msp_w, . - __msp_w
9393

9494
.section .text.__nop
9595
.global __nop
96-
.size __nop, . - __nop
9796
.thumb_func
9897
__nop:
9998
bx lr
99+
.size __nop, . - __nop
100100

101101
.section .text.__primask
102102
.global __primask
103-
.size __primask, . - __primask
104103
.thumb_func
105104
__primask:
106105
mrs r0, PRIMASK
107106
bx lr
107+
.size __primask, . - __primask
108108

109109
.section .text.__psp_r
110110
.global __psp_r
111-
.size __psp_r, . - __psp_r
112111
.thumb_func
113112
__psp_r:
114113
mrs r0, PSP
115114
bx lr
115+
.size __psp_r, . - __psp_r
116116

117117
.section .text.__psp_w
118118
.global __psp_w
119-
.size __psp_w, . - __psp_w
120119
.thumb_func
121120
__psp_w:
122121
msr PSP, r0
123122
bx lr
123+
.size __psp_w, . - __psp_w
124124

125125
.section .text.__sev
126126
.global __sev
127-
.size __sev, . - __sev
128127
.thumb_func
129128
__sev:
130129
sev
131130
bx lr
131+
.size __sev, . - __sev
132132

133133

134134
.section .text.__udf
135135
.global __udf
136-
.size __udf, . - __udf
137136
.thumb_func
138137
__udf:
139138
udf
139+
.size __udf, . - __udf
140140

141141
.section .text.__wfe
142142
.global __wfe
143-
.size __wfe, . - __wfe
144143
.thumb_func
145144
__wfe:
146145
wfe
147146
bx lr
147+
.size __wfe, . - __wfe
148148

149149

150150
.section .text.__wfi
151151
.global __wfi
152-
.size __wfi, . - __wfi
153152
.thumb_func
154153
__wfi:
155154
wfi
155+
.size __wfi, . - __wfi
156156
bx lr

0 commit comments

Comments
 (0)