Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions include/zephyr/linker/llext-sections.ld
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
/* SPDX-License-Identifier: Apache-2.0 */

/*
* Map the no_syscall_impl symbol in llext_export_syscalls.c to
* Save the current address to avoid changing it in this file.
*/
HIDDEN(__llext_current_addr = .);

/*
* Map the 'no_syscall_impl' symbol in 'syscall_export_llext.c' to
* absolute address 0 so other weak symbols are exported as NULL.
* This section is used for mapping that symbol only and is not
* to be included in the final binary.
*/

SECTION_PROLOGUE(llext_no_syscall_impl, 0 (COPY), )
{
*(llext_no_syscall_impl)
Expand All @@ -29,3 +33,5 @@
KEEP(*(llext_exports_strtab))
}
#endif

. = __llext_current_addr;
Loading