zephyr/lib
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
..
acpi lib: fix typo in multiple directories 2025-01-28 00:06:18 +01:00
cpp cpp: Add c++ version number 2025-02-10 15:57:26 +00:00
crc lib: crc: add CRC-32K/4.2 2025-04-14 09:49:02 +02:00
hash lib: hash: murmur3: Account for unaligned 32-bit access 2025-04-29 17:54:51 +02:00
heap kernel: sys_heap: decouple realloc from aligned_realloc 2025-04-01 22:13:04 +02:00
libc libc: newlib: heap arean to support Xtensa MPU 2025-05-01 18:16:20 +02:00
mem_blocks
net_buf lib: net_buf: remove deprecated net_buf_put() and net_buf_get() functions 2025-03-12 19:04:19 +01:00
open-amp lib: open-amp: fix OPENAMP_COPY_RSC_TABLE dependancy 2025-04-25 15:55:43 +02:00
os lib/os/fdtable: Remove ifdef on NATIVE_POSIX 2025-03-12 02:27:36 +01:00
posix tests: posix: move tv_to_ts to posix_clock.h 2025-05-04 19:56:02 +02:00
runtime
smf
utils linker: move last section id constant to c-code 2025-05-08 15:55:40 +02:00
uuid include: zephyr: sys: Fix uuid.h usage in C++ code 2025-05-06 02:36:15 +02:00
CMakeLists.txt uuid: Add UUID utilities 2025-04-14 09:47:26 +02:00
Kconfig uuid: Add UUID utilities 2025-04-14 09:47:26 +02:00