zephyr/scripts/build
Luca Burelli 78ae035f89 llext: fix link order for weak syscall symbols
The weak syscall symbols generated by gen_syscalls.py are currently
compiled in the LLEXT subsystem library, which is then linked among all
other Zephyr libraries in an unspecified order. This can cause the weak
symbols to override the actual syscall implementations, leading to
undefined behaviour.

To fix this, the currently generated file is split in two elements:

- syscall_exports_llext.c contains the EXPORT_SYMBOL directives for all
  syscalls. This part can be compiled with the LLEXT library and linked
  among all other Zephyr libraries, and ensures all syscalls symbols
  are preserved by the linker.

- syscall_weakdefs_llext.c contains the weak definitions for all syscalls.
  This file is compiled in a separate library that is linked last, so
  that the weak symbols are only used if no other implementation is
  available.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2024-12-10 20:38:48 +01:00
..
check_init_priorities.py
check_init_priorities_test.py
dir_is_writeable.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
elf_parser.py
file2hex.py
gen_app_partitions.py scripts: build: gen_app_partitions: enquote archive name wildcards 2024-12-05 09:41:28 +01:00
gen_cfb_font_header.py
gen_device_deps.py
gen_image_info.py
gen_isr_tables.py
gen_isr_tables_parser_carrays.py
gen_isr_tables_parser_local.py
gen_iter_sections.py device: export CMake pre-load from device subsystem enumeration script 2024-11-27 08:15:22 +01:00
gen_kobject_list.py
gen_kobject_placeholders.py
gen_offset_header.py
gen_relocate_app.py
gen_strerror_table.py
gen_strsignal_table.py
gen_symtab.py
gen_syscalls.py llext: fix link order for weak syscall symbols 2024-12-10 20:38:48 +01:00
llext_inject_slids.py
llext_prepare_exptab.py
llext_slidlib.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
mergehex.py
parse_syscalls.py scripts: print the file name when decode syscall 2024-10-30 14:30:55 -05:00
process_gperf.py scripts: process_gperf: upgrade the asso_values type to unsigned short 2024-11-27 06:57:23 -05:00
subfolder_list.py
uf2conv.py
uf2families.json
user_wordsize.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00