mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
libelf_findsymtab() accepted only a SHT_SYMTAB section. A shared object that strip has processed has no SHT_SYMTAB: only its SHT_DYNSYM remains. With CONFIG_DEBUG_SYMBOLS the application build strips each module in bin/, so every FDPIC module that it builds fails to load with "No symbols in ELF file". Use the dynamic symbol table of a shared object when it has no other symbol table. It holds every symbol that the object imports or exports, which is what the loader looks up. An object with SHT_SYMTAB still uses it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| elf.h | ||
| elf_addrenv.c | ||
| elf_bind.c | ||
| elf_depend.c | ||
| elf_gethandle.c | ||
| elf_getsymbol.c | ||
| elf_globals.S | ||
| elf_init.c | ||
| elf_insert.c | ||
| elf_iobuffer.c | ||
| elf_load.c | ||
| elf_loadhdrs.c | ||
| elf_read.c | ||
| elf_registry.c | ||
| elf_remove.c | ||
| elf_sections.c | ||
| elf_symbols.c | ||
| elf_symtab.c | ||
| elf_uninit.c | ||
| elf_unload.c | ||
| elf_verify.c | ||
| gnu-elf.ld.in | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||