Skip to content
Commit eef91d40 authored by Luca Burelli's avatar Luca Burelli Committed by David Leach
Browse files

llext: rework LL_EXTENSION_SYMBOL to generate const structs



The LL_EXTENSION_SYMBOL macro is used to export symbols defined in
extensions to the base image. This patch reworks the macro to use
`static const struct llext_const_symbol`, since:
- the associated values are semantically not modifiable;
- this exported symbol table is parsed by llext like section iterables,
  ignoring associated symbol information.

This is mostly a cosmetic change because, unlike the base image, these
symbols cannot be placed (and left) in ROM as they will most certainly
require runtime relocation. However, it makes this macro more consistent
with EXPORT_SYMBOL, which is the base image equivalent.

Also clarify some comments in the same header file.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent c62dd778
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment