Skip to content

Commit 746c8fd

Browse files
committed
Remove obvious/redundant comments
1 parent de33b58 commit 746c8fd

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

tools/armclang/armclang_stubs.c

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/* armclang_stubs.c
22
*
33
* C library glue for building wolfBoot with the ARM Compiler for Embedded
4-
* (USE_ARMCLANG=1). Only used by the WOLFCRYPT_TZ/PKCS11 configurations.
4+
* (USE_ARMCLANG=1).
55
*
66
* - ARMCLANG_STUBS_MALLOC (secure image): heap allocator over the RAM_HEAP
7-
* scatter region. The GNU build uses newlib-nano's malloc on top of the
8-
* _sbrk hook in src/pkcs11_store.c; the ARM C library malloc cannot be
9-
* used instead because it requires the C library runtime initialization
10-
* (__rt_entry), which never runs since wolfBoot enters at isr_reset.
7+
* scatter region. We can't use the ARM C library malloc because it requires
8+
* the C library runtime initialization, which never runs since wolfBoot
9+
* enters at isr_reset.
1110
*
1211
* - ARMCLANG_STUBS_DEAD_REFS: trap stubs for symbols that are only
1312
* referenced from sections that GNU ld garbage-collects; armlink needs
@@ -39,9 +38,6 @@
3938
extern unsigned int _start_heap;
4039
extern unsigned int _heap_size;
4140

42-
/* First-fit allocator with address-ordered free list and coalescing.
43-
* Block header keeps the total block size (header included); blocks and
44-
* payloads are 8-byte aligned. */
4541
struct heap_blk {
4642
size_t size;
4743
struct heap_blk *next;
@@ -163,14 +159,6 @@ void *realloc(void *ptr, size_t size)
163159

164160
#ifdef ARMCLANG_STUBS_DEAD_REFS
165161

166-
/* Trap stubs for symbols that are referenced only from wolfSSL sections
167-
* that are dead in the wolfBoot configurations (proven by the GNU builds,
168-
* where the references would be a link error if the referencing sections
169-
* survived garbage collection). armlink resolves all symbols before its
170-
* unused section elimination, so the references need a definition; both
171-
* the stubs and the referencing sections are eliminated from the image.
172-
* The infinite loop makes any unexpected live call fail loudly. */
173-
174162
#define ARMCLANG_DEAD_REF_STUB(name) \
175163
void name(void); \
176164
void name(void) { while (1) ; }

0 commit comments

Comments
 (0)