zephyr/subsys/llext
Marc Herbert 7eb1d3d57d llext: elf.h: fix wrong 32 bits length of elf64_rela fields
Fixes commit a9a82d557c ("llext: use elf_rela_t instead of elf_rel_t")

Also switch sign of (unused?) `r_addend` to unsigned.

https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.reloc.html

Issue found thanks to the following warnings when compiling in 64bits:

```
/__w/zephyr/zephyr/include/zephyr/llext/elf.h:349:29: error:
  right shift count >= width of type [-Werror=shift-count-overflow]
     349 | #define ELF64_R_SYM(i) ((i) >> 32)
```

The name `elf64_word` was admittedly confusing.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-03-12 19:28:18 -04:00
..
buf_loader.c llext: add llext_peek() 2023-11-10 10:40:26 +01:00
CMakeLists.txt llext: export some symbols 2023-12-01 10:08:12 -05:00
Kconfig llext: autoselect CACHE_MANAGEMENT on supported targets 2023-12-13 15:22:07 +00:00
llext.c llext: elf.h: fix wrong 32 bits length of elf64_rela fields 2024-03-12 19:28:18 -04:00
llext_export.c llext: export some symbols 2023-12-01 10:08:12 -05:00
shell.c llext: shell: fix command completions 2023-12-06 18:01:34 -05:00