zephyr/lib/utils
Torsten Rasmussen c79c4ef9a8 linker: move last section id constant to c-code
Move creation of last section id from ld linker script LONG() usage to
C code with last section attribute.

The use of `LONG()` works correctly with ld but lld emits a warning
because .last_section section is not allocated as there are no matching
input sections and discards the `LONG()` call, meaning the last section
identifier will not be present in the flash.
> ld.lld: warning: ignoring memory region assignment for
>                             non-allocatable section '.last_section'

Placing the last section id in `.last_section` in C code makes lld
allocate the memory for the id and thereby create the output section
with the correct output.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-05-08 15:55:40 +02:00
..
base64.c
bitarray.c lib: check null pointer before taking lock for bitarray 2024-06-14 19:18:28 +02:00
CMakeLists.txt linker: move last section id constant to c-code 2025-05-08 15:55:40 +02:00
cobs.c lib: utils: add consistent overhead byte stuffing 2025-03-11 05:36:49 +01:00
dec.c
hex.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-13 20:28:23 -04:00
json.c json: improve parsing and serializing of integers 2025-04-11 06:32:50 +02:00
Kconfig json: improve parsing and serializing of 'float' and 'double' 2025-04-09 22:05:14 +02:00
last_section_id.c linker: move last section id constant to c-code 2025-05-08 15:55:40 +02:00
notify.c
onoff.c
rb.c lib: avoided increments/decrements with side effects 2024-06-21 08:48:15 -04:00
ring_buffer.c ring_buffer: shrink size of struct ring_buf 2025-03-11 08:59:05 +01:00
timeutil.c sys: timeutil: expose and use macro for base year 2024-08-29 11:38:28 +02:00
utf8.c zephyr: Add zero-len check for utf8_trunc 2024-06-27 08:48:31 -04:00
winstream.c