2025-03-21 15:35:07 +01:00

861 lines
36 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 1
1 .cpu cortex-m7
2 .arch armv7e-m
3 .fpu fpv5-d16
4 .eabi_attribute 28, 1
5 .eabi_attribute 20, 1
6 .eabi_attribute 21, 1
7 .eabi_attribute 23, 3
8 .eabi_attribute 24, 1
9 .eabi_attribute 25, 1
10 .eabi_attribute 26, 1
11 .eabi_attribute 30, 1
12 .eabi_attribute 34, 1
13 .eabi_attribute 18, 4
14 .file "syscalls.c"
15 .text
16 .Ltext0:
17 .cfi_sections .debug_frame
18 .file 1 "Core/Src/syscalls.c"
19 .section .text.initialise_monitor_handles,"ax",%progbits
20 .align 1
21 .global initialise_monitor_handles
22 .syntax unified
23 .thumb
24 .thumb_func
26 initialise_monitor_handles:
27 .LFB25:
1:Core/Src/syscalls.c **** /**
2:Core/Src/syscalls.c **** ******************************************************************************
3:Core/Src/syscalls.c **** * @file syscalls.c
4:Core/Src/syscalls.c **** * @author Auto-generated by STM32CubeMX
5:Core/Src/syscalls.c **** * @brief Minimal System calls file
6:Core/Src/syscalls.c **** *
7:Core/Src/syscalls.c **** * For more information about which c-functions
8:Core/Src/syscalls.c **** * need which of these lowlevel functions
9:Core/Src/syscalls.c **** * please consult the Newlib libc-manual
10:Core/Src/syscalls.c **** ******************************************************************************
11:Core/Src/syscalls.c **** * @attention
12:Core/Src/syscalls.c **** *
13:Core/Src/syscalls.c **** * Copyright (c) 2020-2024 STMicroelectronics.
14:Core/Src/syscalls.c **** * All rights reserved.
15:Core/Src/syscalls.c **** *
16:Core/Src/syscalls.c **** * This software is licensed under terms that can be found in the LICENSE file
17:Core/Src/syscalls.c **** * in the root directory of this software component.
18:Core/Src/syscalls.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
19:Core/Src/syscalls.c **** *
20:Core/Src/syscalls.c **** ******************************************************************************
21:Core/Src/syscalls.c **** */
22:Core/Src/syscalls.c ****
23:Core/Src/syscalls.c **** /* Includes */
24:Core/Src/syscalls.c **** #include <sys/stat.h>
25:Core/Src/syscalls.c **** #include <stdlib.h>
26:Core/Src/syscalls.c **** #include <errno.h>
27:Core/Src/syscalls.c **** #include <stdio.h>
28:Core/Src/syscalls.c **** #include <signal.h>
29:Core/Src/syscalls.c **** #include <time.h>
30:Core/Src/syscalls.c **** #include <sys/time.h>
31:Core/Src/syscalls.c **** #include <sys/times.h>
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 2
32:Core/Src/syscalls.c ****
33:Core/Src/syscalls.c ****
34:Core/Src/syscalls.c **** /* Variables */
35:Core/Src/syscalls.c **** extern int __io_putchar(int ch) __attribute__((weak));
36:Core/Src/syscalls.c **** extern int __io_getchar(void) __attribute__((weak));
37:Core/Src/syscalls.c ****
38:Core/Src/syscalls.c ****
39:Core/Src/syscalls.c **** char *__env[1] = { 0 };
40:Core/Src/syscalls.c **** char **environ = __env;
41:Core/Src/syscalls.c ****
42:Core/Src/syscalls.c ****
43:Core/Src/syscalls.c **** /* Functions */
44:Core/Src/syscalls.c **** void initialise_monitor_handles()
45:Core/Src/syscalls.c **** {
28 .loc 1 45 1 view -0
29 .cfi_startproc
30 @ args = 0, pretend = 0, frame = 0
31 @ frame_needed = 0, uses_anonymous_args = 0
32 @ link register save eliminated.
46:Core/Src/syscalls.c **** }
33 .loc 1 46 1 view .LVU1
34 0000 7047 bx lr
35 .cfi_endproc
36 .LFE25:
38 .section .text._getpid,"ax",%progbits
39 .align 1
40 .global _getpid
41 .syntax unified
42 .thumb
43 .thumb_func
45 _getpid:
46 .LFB26:
47:Core/Src/syscalls.c ****
48:Core/Src/syscalls.c **** int _getpid(void)
49:Core/Src/syscalls.c **** {
47 .loc 1 49 1 view -0
48 .cfi_startproc
49 @ args = 0, pretend = 0, frame = 0
50 @ frame_needed = 0, uses_anonymous_args = 0
51 @ link register save eliminated.
50:Core/Src/syscalls.c **** return 1;
52 .loc 1 50 3 view .LVU3
51:Core/Src/syscalls.c **** }
53 .loc 1 51 1 is_stmt 0 view .LVU4
54 0000 0120 movs r0, #1
55 0002 7047 bx lr
56 .cfi_endproc
57 .LFE26:
59 .section .text._kill,"ax",%progbits
60 .align 1
61 .global _kill
62 .syntax unified
63 .thumb
64 .thumb_func
66 _kill:
67 .LVL0:
68 .LFB27:
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 3
52:Core/Src/syscalls.c ****
53:Core/Src/syscalls.c **** int _kill(int pid, int sig)
54:Core/Src/syscalls.c **** {
69 .loc 1 54 1 is_stmt 1 view -0
70 .cfi_startproc
71 @ args = 0, pretend = 0, frame = 0
72 @ frame_needed = 0, uses_anonymous_args = 0
73 .loc 1 54 1 is_stmt 0 view .LVU6
74 0000 08B5 push {r3, lr}
75 .cfi_def_cfa_offset 8
76 .cfi_offset 3, -8
77 .cfi_offset 14, -4
55:Core/Src/syscalls.c **** (void)pid;
78 .loc 1 55 3 is_stmt 1 view .LVU7
56:Core/Src/syscalls.c **** (void)sig;
79 .loc 1 56 3 view .LVU8
57:Core/Src/syscalls.c **** errno = EINVAL;
80 .loc 1 57 3 view .LVU9
81 0002 FFF7FEFF bl __errno
82 .LVL1:
83 .loc 1 57 9 is_stmt 0 discriminator 1 view .LVU10
84 0006 1623 movs r3, #22
85 0008 0360 str r3, [r0]
58:Core/Src/syscalls.c **** return -1;
86 .loc 1 58 3 is_stmt 1 view .LVU11
59:Core/Src/syscalls.c **** }
87 .loc 1 59 1 is_stmt 0 view .LVU12
88 000a 4FF0FF30 mov r0, #-1
89 000e 08BD pop {r3, pc}
90 .cfi_endproc
91 .LFE27:
93 .section .text._exit,"ax",%progbits
94 .align 1
95 .global _exit
96 .syntax unified
97 .thumb
98 .thumb_func
100 _exit:
101 .LVL2:
102 .LFB28:
60:Core/Src/syscalls.c ****
61:Core/Src/syscalls.c **** void _exit (int status)
62:Core/Src/syscalls.c **** {
103 .loc 1 62 1 is_stmt 1 view -0
104 .cfi_startproc
105 @ Volatile: function does not return.
106 @ args = 0, pretend = 0, frame = 0
107 @ frame_needed = 0, uses_anonymous_args = 0
108 .loc 1 62 1 is_stmt 0 view .LVU14
109 0000 08B5 push {r3, lr}
110 .cfi_def_cfa_offset 8
111 .cfi_offset 3, -8
112 .cfi_offset 14, -4
63:Core/Src/syscalls.c **** _kill(status, -1);
113 .loc 1 63 3 is_stmt 1 view .LVU15
114 0002 4FF0FF31 mov r1, #-1
115 0006 FFF7FEFF bl _kill
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 4
116 .LVL3:
117 .L6:
64:Core/Src/syscalls.c **** while (1) {} /* Make sure we hang here */
118 .loc 1 64 3 view .LVU16
119 .loc 1 64 14 view .LVU17
120 .loc 1 64 9 view .LVU18
121 000a FEE7 b .L6
122 .cfi_endproc
123 .LFE28:
125 .section .text._read,"ax",%progbits
126 .align 1
127 .weak _read
128 .syntax unified
129 .thumb
130 .thumb_func
132 _read:
133 .LVL4:
134 .LFB29:
65:Core/Src/syscalls.c **** }
66:Core/Src/syscalls.c ****
67:Core/Src/syscalls.c **** __attribute__((weak)) int _read(int file, char *ptr, int len)
68:Core/Src/syscalls.c **** {
135 .loc 1 68 1 view -0
136 .cfi_startproc
137 @ args = 0, pretend = 0, frame = 0
138 @ frame_needed = 0, uses_anonymous_args = 0
139 .loc 1 68 1 is_stmt 0 view .LVU20
140 0000 70B5 push {r4, r5, r6, lr}
141 .cfi_def_cfa_offset 16
142 .cfi_offset 4, -16
143 .cfi_offset 5, -12
144 .cfi_offset 6, -8
145 .cfi_offset 14, -4
146 0002 0C46 mov r4, r1
147 0004 1646 mov r6, r2
69:Core/Src/syscalls.c **** (void)file;
148 .loc 1 69 3 is_stmt 1 view .LVU21
70:Core/Src/syscalls.c **** int DataIdx;
149 .loc 1 70 3 view .LVU22
71:Core/Src/syscalls.c ****
72:Core/Src/syscalls.c **** for (DataIdx = 0; DataIdx < len; DataIdx++)
150 .loc 1 72 3 view .LVU23
151 .LVL5:
152 .loc 1 72 16 is_stmt 0 view .LVU24
153 0006 0025 movs r5, #0
154 .loc 1 72 3 view .LVU25
155 0008 06E0 b .L9
156 .LVL6:
157 .L10:
73:Core/Src/syscalls.c **** {
74:Core/Src/syscalls.c **** *ptr++ = __io_getchar();
158 .loc 1 74 5 is_stmt 1 view .LVU26
159 .loc 1 74 14 is_stmt 0 view .LVU27
160 000a FFF7FEFF bl __io_getchar
161 .LVL7:
162 .loc 1 74 9 discriminator 1 view .LVU28
163 000e 2146 mov r1, r4
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 5
164 .LVL8:
165 .loc 1 74 12 discriminator 1 view .LVU29
166 0010 01F8010B strb r0, [r1], #1
167 .LVL9:
72:Core/Src/syscalls.c **** {
168 .loc 1 72 43 is_stmt 1 discriminator 3 view .LVU30
169 0014 0135 adds r5, r5, #1
170 .LVL10:
171 .loc 1 74 9 is_stmt 0 discriminator 1 view .LVU31
172 0016 0C46 mov r4, r1
173 .LVL11:
174 .L9:
72:Core/Src/syscalls.c **** {
175 .loc 1 72 29 is_stmt 1 discriminator 1 view .LVU32
176 0018 B542 cmp r5, r6
177 001a F6DB blt .L10
75:Core/Src/syscalls.c **** }
76:Core/Src/syscalls.c ****
77:Core/Src/syscalls.c **** return len;
178 .loc 1 77 3 view .LVU33
78:Core/Src/syscalls.c **** }
179 .loc 1 78 1 is_stmt 0 view .LVU34
180 001c 3046 mov r0, r6
181 001e 70BD pop {r4, r5, r6, pc}
182 .loc 1 78 1 view .LVU35
183 .cfi_endproc
184 .LFE29:
186 .section .text._write,"ax",%progbits
187 .align 1
188 .weak _write
189 .syntax unified
190 .thumb
191 .thumb_func
193 _write:
194 .LVL12:
195 .LFB30:
79:Core/Src/syscalls.c ****
80:Core/Src/syscalls.c **** __attribute__((weak)) int _write(int file, char *ptr, int len)
81:Core/Src/syscalls.c **** {
196 .loc 1 81 1 is_stmt 1 view -0
197 .cfi_startproc
198 @ args = 0, pretend = 0, frame = 0
199 @ frame_needed = 0, uses_anonymous_args = 0
200 .loc 1 81 1 is_stmt 0 view .LVU37
201 0000 70B5 push {r4, r5, r6, lr}
202 .cfi_def_cfa_offset 16
203 .cfi_offset 4, -16
204 .cfi_offset 5, -12
205 .cfi_offset 6, -8
206 .cfi_offset 14, -4
207 0002 0C46 mov r4, r1
208 0004 1646 mov r6, r2
82:Core/Src/syscalls.c **** (void)file;
209 .loc 1 82 3 is_stmt 1 view .LVU38
83:Core/Src/syscalls.c **** int DataIdx;
210 .loc 1 83 3 view .LVU39
84:Core/Src/syscalls.c ****
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 6
85:Core/Src/syscalls.c **** for (DataIdx = 0; DataIdx < len; DataIdx++)
211 .loc 1 85 3 view .LVU40
212 .LVL13:
213 .loc 1 85 16 is_stmt 0 view .LVU41
214 0006 0025 movs r5, #0
215 .loc 1 85 3 view .LVU42
216 0008 04E0 b .L13
217 .LVL14:
218 .L14:
86:Core/Src/syscalls.c **** {
87:Core/Src/syscalls.c **** __io_putchar(*ptr++);
219 .loc 1 87 5 is_stmt 1 view .LVU43
220 .loc 1 87 5 is_stmt 0 view .LVU44
221 000a 14F8010B ldrb r0, [r4], #1 @ zero_extendqisi2
222 .LVL15:
223 .loc 1 87 5 view .LVU45
224 000e FFF7FEFF bl __io_putchar
225 .LVL16:
85:Core/Src/syscalls.c **** {
226 .loc 1 85 43 is_stmt 1 discriminator 3 view .LVU46
227 0012 0135 adds r5, r5, #1
228 .LVL17:
229 .L13:
85:Core/Src/syscalls.c **** {
230 .loc 1 85 29 discriminator 1 view .LVU47
231 0014 B542 cmp r5, r6
232 0016 F8DB blt .L14
88:Core/Src/syscalls.c **** }
89:Core/Src/syscalls.c **** return len;
233 .loc 1 89 3 view .LVU48
90:Core/Src/syscalls.c **** }
234 .loc 1 90 1 is_stmt 0 view .LVU49
235 0018 3046 mov r0, r6
236 001a 70BD pop {r4, r5, r6, pc}
237 .loc 1 90 1 view .LVU50
238 .cfi_endproc
239 .LFE30:
241 .section .text._close,"ax",%progbits
242 .align 1
243 .global _close
244 .syntax unified
245 .thumb
246 .thumb_func
248 _close:
249 .LVL18:
250 .LFB31:
91:Core/Src/syscalls.c ****
92:Core/Src/syscalls.c **** int _close(int file)
93:Core/Src/syscalls.c **** {
251 .loc 1 93 1 is_stmt 1 view -0
252 .cfi_startproc
253 @ args = 0, pretend = 0, frame = 0
254 @ frame_needed = 0, uses_anonymous_args = 0
255 @ link register save eliminated.
94:Core/Src/syscalls.c **** (void)file;
256 .loc 1 94 3 view .LVU52
95:Core/Src/syscalls.c **** return -1;
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 7
257 .loc 1 95 3 view .LVU53
96:Core/Src/syscalls.c **** }
258 .loc 1 96 1 is_stmt 0 view .LVU54
259 0000 4FF0FF30 mov r0, #-1
260 .LVL19:
261 .loc 1 96 1 view .LVU55
262 0004 7047 bx lr
263 .cfi_endproc
264 .LFE31:
266 .section .text._fstat,"ax",%progbits
267 .align 1
268 .global _fstat
269 .syntax unified
270 .thumb
271 .thumb_func
273 _fstat:
274 .LVL20:
275 .LFB32:
97:Core/Src/syscalls.c ****
98:Core/Src/syscalls.c ****
99:Core/Src/syscalls.c **** int _fstat(int file, struct stat *st)
100:Core/Src/syscalls.c **** {
276 .loc 1 100 1 is_stmt 1 view -0
277 .cfi_startproc
278 @ args = 0, pretend = 0, frame = 0
279 @ frame_needed = 0, uses_anonymous_args = 0
280 @ link register save eliminated.
101:Core/Src/syscalls.c **** (void)file;
281 .loc 1 101 3 view .LVU57
102:Core/Src/syscalls.c **** st->st_mode = S_IFCHR;
282 .loc 1 102 3 view .LVU58
283 .loc 1 102 15 is_stmt 0 view .LVU59
284 0000 4FF40053 mov r3, #8192
285 0004 4B60 str r3, [r1, #4]
103:Core/Src/syscalls.c **** return 0;
286 .loc 1 103 3 is_stmt 1 view .LVU60
104:Core/Src/syscalls.c **** }
287 .loc 1 104 1 is_stmt 0 view .LVU61
288 0006 0020 movs r0, #0
289 .LVL21:
290 .loc 1 104 1 view .LVU62
291 0008 7047 bx lr
292 .cfi_endproc
293 .LFE32:
295 .section .text._isatty,"ax",%progbits
296 .align 1
297 .global _isatty
298 .syntax unified
299 .thumb
300 .thumb_func
302 _isatty:
303 .LVL22:
304 .LFB33:
105:Core/Src/syscalls.c ****
106:Core/Src/syscalls.c **** int _isatty(int file)
107:Core/Src/syscalls.c **** {
305 .loc 1 107 1 is_stmt 1 view -0
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 8
306 .cfi_startproc
307 @ args = 0, pretend = 0, frame = 0
308 @ frame_needed = 0, uses_anonymous_args = 0
309 @ link register save eliminated.
108:Core/Src/syscalls.c **** (void)file;
310 .loc 1 108 3 view .LVU64
109:Core/Src/syscalls.c **** return 1;
311 .loc 1 109 3 view .LVU65
110:Core/Src/syscalls.c **** }
312 .loc 1 110 1 is_stmt 0 view .LVU66
313 0000 0120 movs r0, #1
314 .LVL23:
315 .loc 1 110 1 view .LVU67
316 0002 7047 bx lr
317 .cfi_endproc
318 .LFE33:
320 .section .text._lseek,"ax",%progbits
321 .align 1
322 .global _lseek
323 .syntax unified
324 .thumb
325 .thumb_func
327 _lseek:
328 .LVL24:
329 .LFB34:
111:Core/Src/syscalls.c ****
112:Core/Src/syscalls.c **** int _lseek(int file, int ptr, int dir)
113:Core/Src/syscalls.c **** {
330 .loc 1 113 1 is_stmt 1 view -0
331 .cfi_startproc
332 @ args = 0, pretend = 0, frame = 0
333 @ frame_needed = 0, uses_anonymous_args = 0
334 @ link register save eliminated.
114:Core/Src/syscalls.c **** (void)file;
335 .loc 1 114 3 view .LVU69
115:Core/Src/syscalls.c **** (void)ptr;
336 .loc 1 115 3 view .LVU70
116:Core/Src/syscalls.c **** (void)dir;
337 .loc 1 116 3 view .LVU71
117:Core/Src/syscalls.c **** return 0;
338 .loc 1 117 3 view .LVU72
118:Core/Src/syscalls.c **** }
339 .loc 1 118 1 is_stmt 0 view .LVU73
340 0000 0020 movs r0, #0
341 .LVL25:
342 .loc 1 118 1 view .LVU74
343 0002 7047 bx lr
344 .cfi_endproc
345 .LFE34:
347 .section .text._open,"ax",%progbits
348 .align 1
349 .global _open
350 .syntax unified
351 .thumb
352 .thumb_func
354 _open:
355 .LVL26:
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 9
356 .LFB35:
119:Core/Src/syscalls.c ****
120:Core/Src/syscalls.c **** int _open(char *path, int flags, ...)
121:Core/Src/syscalls.c **** {
357 .loc 1 121 1 is_stmt 1 view -0
358 .cfi_startproc
359 @ args = 4, pretend = 12, frame = 0
360 @ frame_needed = 0, uses_anonymous_args = 1
361 @ link register save eliminated.
362 .loc 1 121 1 is_stmt 0 view .LVU76
363 0000 0EB4 push {r1, r2, r3}
364 .cfi_def_cfa_offset 12
365 .cfi_offset 1, -12
366 .cfi_offset 2, -8
367 .cfi_offset 3, -4
122:Core/Src/syscalls.c **** (void)path;
368 .loc 1 122 3 is_stmt 1 view .LVU77
123:Core/Src/syscalls.c **** (void)flags;
369 .loc 1 123 3 view .LVU78
124:Core/Src/syscalls.c **** /* Pretend like we always fail */
125:Core/Src/syscalls.c **** return -1;
370 .loc 1 125 3 view .LVU79
126:Core/Src/syscalls.c **** }
371 .loc 1 126 1 is_stmt 0 view .LVU80
372 0002 4FF0FF30 mov r0, #-1
373 .LVL27:
374 .loc 1 126 1 view .LVU81
375 0006 03B0 add sp, sp, #12
376 .cfi_restore 3
377 .cfi_restore 2
378 .cfi_restore 1
379 .cfi_def_cfa_offset 0
380 0008 7047 bx lr
381 .cfi_endproc
382 .LFE35:
384 .section .text._wait,"ax",%progbits
385 .align 1
386 .global _wait
387 .syntax unified
388 .thumb
389 .thumb_func
391 _wait:
392 .LVL28:
393 .LFB36:
127:Core/Src/syscalls.c ****
128:Core/Src/syscalls.c **** int _wait(int *status)
129:Core/Src/syscalls.c **** {
394 .loc 1 129 1 is_stmt 1 view -0
395 .cfi_startproc
396 @ args = 0, pretend = 0, frame = 0
397 @ frame_needed = 0, uses_anonymous_args = 0
398 .loc 1 129 1 is_stmt 0 view .LVU83
399 0000 08B5 push {r3, lr}
400 .cfi_def_cfa_offset 8
401 .cfi_offset 3, -8
402 .cfi_offset 14, -4
130:Core/Src/syscalls.c **** (void)status;
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 10
403 .loc 1 130 3 is_stmt 1 view .LVU84
131:Core/Src/syscalls.c **** errno = ECHILD;
404 .loc 1 131 3 view .LVU85
405 0002 FFF7FEFF bl __errno
406 .LVL29:
407 .loc 1 131 9 is_stmt 0 discriminator 1 view .LVU86
408 0006 0A23 movs r3, #10
409 0008 0360 str r3, [r0]
132:Core/Src/syscalls.c **** return -1;
410 .loc 1 132 3 is_stmt 1 view .LVU87
133:Core/Src/syscalls.c **** }
411 .loc 1 133 1 is_stmt 0 view .LVU88
412 000a 4FF0FF30 mov r0, #-1
413 000e 08BD pop {r3, pc}
414 .cfi_endproc
415 .LFE36:
417 .section .text._unlink,"ax",%progbits
418 .align 1
419 .global _unlink
420 .syntax unified
421 .thumb
422 .thumb_func
424 _unlink:
425 .LVL30:
426 .LFB37:
134:Core/Src/syscalls.c ****
135:Core/Src/syscalls.c **** int _unlink(char *name)
136:Core/Src/syscalls.c **** {
427 .loc 1 136 1 is_stmt 1 view -0
428 .cfi_startproc
429 @ args = 0, pretend = 0, frame = 0
430 @ frame_needed = 0, uses_anonymous_args = 0
431 .loc 1 136 1 is_stmt 0 view .LVU90
432 0000 08B5 push {r3, lr}
433 .cfi_def_cfa_offset 8
434 .cfi_offset 3, -8
435 .cfi_offset 14, -4
137:Core/Src/syscalls.c **** (void)name;
436 .loc 1 137 3 is_stmt 1 view .LVU91
138:Core/Src/syscalls.c **** errno = ENOENT;
437 .loc 1 138 3 view .LVU92
438 0002 FFF7FEFF bl __errno
439 .LVL31:
440 .loc 1 138 9 is_stmt 0 discriminator 1 view .LVU93
441 0006 0223 movs r3, #2
442 0008 0360 str r3, [r0]
139:Core/Src/syscalls.c **** return -1;
443 .loc 1 139 3 is_stmt 1 view .LVU94
140:Core/Src/syscalls.c **** }
444 .loc 1 140 1 is_stmt 0 view .LVU95
445 000a 4FF0FF30 mov r0, #-1
446 000e 08BD pop {r3, pc}
447 .cfi_endproc
448 .LFE37:
450 .section .text._times,"ax",%progbits
451 .align 1
452 .global _times
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 11
453 .syntax unified
454 .thumb
455 .thumb_func
457 _times:
458 .LVL32:
459 .LFB38:
141:Core/Src/syscalls.c ****
142:Core/Src/syscalls.c **** int _times(struct tms *buf)
143:Core/Src/syscalls.c **** {
460 .loc 1 143 1 is_stmt 1 view -0
461 .cfi_startproc
462 @ args = 0, pretend = 0, frame = 0
463 @ frame_needed = 0, uses_anonymous_args = 0
464 @ link register save eliminated.
144:Core/Src/syscalls.c **** (void)buf;
465 .loc 1 144 3 view .LVU97
145:Core/Src/syscalls.c **** return -1;
466 .loc 1 145 3 view .LVU98
146:Core/Src/syscalls.c **** }
467 .loc 1 146 1 is_stmt 0 view .LVU99
468 0000 4FF0FF30 mov r0, #-1
469 .LVL33:
470 .loc 1 146 1 view .LVU100
471 0004 7047 bx lr
472 .cfi_endproc
473 .LFE38:
475 .section .text._stat,"ax",%progbits
476 .align 1
477 .global _stat
478 .syntax unified
479 .thumb
480 .thumb_func
482 _stat:
483 .LVL34:
484 .LFB39:
147:Core/Src/syscalls.c ****
148:Core/Src/syscalls.c **** int _stat(char *file, struct stat *st)
149:Core/Src/syscalls.c **** {
485 .loc 1 149 1 is_stmt 1 view -0
486 .cfi_startproc
487 @ args = 0, pretend = 0, frame = 0
488 @ frame_needed = 0, uses_anonymous_args = 0
489 @ link register save eliminated.
150:Core/Src/syscalls.c **** (void)file;
490 .loc 1 150 3 view .LVU102
151:Core/Src/syscalls.c **** st->st_mode = S_IFCHR;
491 .loc 1 151 3 view .LVU103
492 .loc 1 151 15 is_stmt 0 view .LVU104
493 0000 4FF40053 mov r3, #8192
494 0004 4B60 str r3, [r1, #4]
152:Core/Src/syscalls.c **** return 0;
495 .loc 1 152 3 is_stmt 1 view .LVU105
153:Core/Src/syscalls.c **** }
496 .loc 1 153 1 is_stmt 0 view .LVU106
497 0006 0020 movs r0, #0
498 .LVL35:
499 .loc 1 153 1 view .LVU107
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 12
500 0008 7047 bx lr
501 .cfi_endproc
502 .LFE39:
504 .section .text._link,"ax",%progbits
505 .align 1
506 .global _link
507 .syntax unified
508 .thumb
509 .thumb_func
511 _link:
512 .LVL36:
513 .LFB40:
154:Core/Src/syscalls.c ****
155:Core/Src/syscalls.c **** int _link(char *old, char *new)
156:Core/Src/syscalls.c **** {
514 .loc 1 156 1 is_stmt 1 view -0
515 .cfi_startproc
516 @ args = 0, pretend = 0, frame = 0
517 @ frame_needed = 0, uses_anonymous_args = 0
518 .loc 1 156 1 is_stmt 0 view .LVU109
519 0000 08B5 push {r3, lr}
520 .cfi_def_cfa_offset 8
521 .cfi_offset 3, -8
522 .cfi_offset 14, -4
157:Core/Src/syscalls.c **** (void)old;
523 .loc 1 157 3 is_stmt 1 view .LVU110
158:Core/Src/syscalls.c **** (void)new;
524 .loc 1 158 3 view .LVU111
159:Core/Src/syscalls.c **** errno = EMLINK;
525 .loc 1 159 3 view .LVU112
526 0002 FFF7FEFF bl __errno
527 .LVL37:
528 .loc 1 159 9 is_stmt 0 discriminator 1 view .LVU113
529 0006 1F23 movs r3, #31
530 0008 0360 str r3, [r0]
160:Core/Src/syscalls.c **** return -1;
531 .loc 1 160 3 is_stmt 1 view .LVU114
161:Core/Src/syscalls.c **** }
532 .loc 1 161 1 is_stmt 0 view .LVU115
533 000a 4FF0FF30 mov r0, #-1
534 000e 08BD pop {r3, pc}
535 .cfi_endproc
536 .LFE40:
538 .section .text._fork,"ax",%progbits
539 .align 1
540 .global _fork
541 .syntax unified
542 .thumb
543 .thumb_func
545 _fork:
546 .LFB41:
162:Core/Src/syscalls.c ****
163:Core/Src/syscalls.c **** int _fork(void)
164:Core/Src/syscalls.c **** {
547 .loc 1 164 1 is_stmt 1 view -0
548 .cfi_startproc
549 @ args = 0, pretend = 0, frame = 0
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 13
550 @ frame_needed = 0, uses_anonymous_args = 0
551 0000 08B5 push {r3, lr}
552 .cfi_def_cfa_offset 8
553 .cfi_offset 3, -8
554 .cfi_offset 14, -4
165:Core/Src/syscalls.c **** errno = EAGAIN;
555 .loc 1 165 3 view .LVU117
556 0002 FFF7FEFF bl __errno
557 .LVL38:
558 .loc 1 165 9 is_stmt 0 discriminator 1 view .LVU118
559 0006 0B23 movs r3, #11
560 0008 0360 str r3, [r0]
166:Core/Src/syscalls.c **** return -1;
561 .loc 1 166 3 is_stmt 1 view .LVU119
167:Core/Src/syscalls.c **** }
562 .loc 1 167 1 is_stmt 0 view .LVU120
563 000a 4FF0FF30 mov r0, #-1
564 000e 08BD pop {r3, pc}
565 .cfi_endproc
566 .LFE41:
568 .section .text._execve,"ax",%progbits
569 .align 1
570 .global _execve
571 .syntax unified
572 .thumb
573 .thumb_func
575 _execve:
576 .LVL39:
577 .LFB42:
168:Core/Src/syscalls.c ****
169:Core/Src/syscalls.c **** int _execve(char *name, char **argv, char **env)
170:Core/Src/syscalls.c **** {
578 .loc 1 170 1 is_stmt 1 view -0
579 .cfi_startproc
580 @ args = 0, pretend = 0, frame = 0
581 @ frame_needed = 0, uses_anonymous_args = 0
582 .loc 1 170 1 is_stmt 0 view .LVU122
583 0000 08B5 push {r3, lr}
584 .cfi_def_cfa_offset 8
585 .cfi_offset 3, -8
586 .cfi_offset 14, -4
171:Core/Src/syscalls.c **** (void)name;
587 .loc 1 171 3 is_stmt 1 view .LVU123
172:Core/Src/syscalls.c **** (void)argv;
588 .loc 1 172 3 view .LVU124
173:Core/Src/syscalls.c **** (void)env;
589 .loc 1 173 3 view .LVU125
174:Core/Src/syscalls.c **** errno = ENOMEM;
590 .loc 1 174 3 view .LVU126
591 0002 FFF7FEFF bl __errno
592 .LVL40:
593 .loc 1 174 9 is_stmt 0 discriminator 1 view .LVU127
594 0006 0C23 movs r3, #12
595 0008 0360 str r3, [r0]
175:Core/Src/syscalls.c **** return -1;
596 .loc 1 175 3 is_stmt 1 view .LVU128
176:Core/Src/syscalls.c **** }
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 14
597 .loc 1 176 1 is_stmt 0 view .LVU129
598 000a 4FF0FF30 mov r0, #-1
599 000e 08BD pop {r3, pc}
600 .cfi_endproc
601 .LFE42:
603 .global environ
604 .section .data.environ,"aw"
605 .align 2
608 environ:
609 0000 00000000 .word __env
610 .global __env
611 .section .bss.__env,"aw",%nobits
612 .align 2
615 __env:
616 0000 00000000 .space 4
617 .weak __io_putchar
618 .weak __io_getchar
619 .text
620 .Letext0:
621 .file 2 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
622 .file 3 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
623 .file 4 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
624 .file 5 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
625 .file 6 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
626 .file 7 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
627 .file 8 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
628 .file 9 "C:/Users/lenex/AppData/Roaming/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-to
ARM GAS C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s page 15
DEFINED SYMBOLS
*ABS*:00000000 syscalls.c
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:20 .text.initialise_monitor_handles:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:26 .text.initialise_monitor_handles:00000000 initialise_monitor_handles
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:39 .text._getpid:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:45 .text._getpid:00000000 _getpid
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:60 .text._kill:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:66 .text._kill:00000000 _kill
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:94 .text._exit:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:100 .text._exit:00000000 _exit
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:126 .text._read:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:132 .text._read:00000000 _read
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:187 .text._write:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:193 .text._write:00000000 _write
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:242 .text._close:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:248 .text._close:00000000 _close
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:267 .text._fstat:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:273 .text._fstat:00000000 _fstat
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:296 .text._isatty:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:302 .text._isatty:00000000 _isatty
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:321 .text._lseek:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:327 .text._lseek:00000000 _lseek
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:348 .text._open:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:354 .text._open:00000000 _open
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:385 .text._wait:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:391 .text._wait:00000000 _wait
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:418 .text._unlink:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:424 .text._unlink:00000000 _unlink
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:451 .text._times:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:457 .text._times:00000000 _times
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:476 .text._stat:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:482 .text._stat:00000000 _stat
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:505 .text._link:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:511 .text._link:00000000 _link
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:539 .text._fork:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:545 .text._fork:00000000 _fork
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:569 .text._execve:00000000 $t
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:575 .text._execve:00000000 _execve
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:608 .data.environ:00000000 environ
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:605 .data.environ:00000000 $d
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:615 .bss.__env:00000000 __env
C:\Users\lenex\AppData\Local\Temp\cca0k2CE.s:612 .bss.__env:00000000 $d
UNDEFINED SYMBOLS
__errno
__io_getchar
__io_putchar