init commit

This commit is contained in:
2025-09-05 10:30:26 +02:00
commit c144fcd356
1526 changed files with 1115326 additions and 0 deletions

900
build/syscalls.lst Normal file
View File

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