yf13 commented on PR #11587:
URL: https://github.com/apache/nuttx/pull/11587#issuecomment-1905344191

   @masayuki2009 thanks for teaching the usage.
   
   I can see the crash here now with qemu 6.2 as well and I got the following 
log:
   
   ```
   nsh> mount -t hostfs -o fs=../apps/bin /system/bin
   nsh> hello
   elf_symname: Symbol has no name
   elf_symvalue: SHN_UNDEF: Failed to get symbol name: -3
   elf_relocateadd: Section 3 reloc 1: Undefined symbol[0] has no name: -3
   elf_symvalue: SHN_UNDEF: Exported symbol "puts" not found
   elf_relocateadd: Section 3 reloc 4: Failed to get value of symbol[65]: -2
   elf_loadbinary: Failed to bind symbols program binary: -2
   riscv_exception: EXCEPTION: Instruction access fault. MCAUSE: 
0000000000000001, EPC: 0000000000000000, MTVAL: 0000000000000000
   riscv_exception: PANIC!!! Exception = 0000000000000001
   _assert: Current Version: NuttX  12.4.0-RC0 e873537cc5 Jan 23 2024 13:47:43 
risc-v
   _assert: Assertion failed panic: at file: :0 task: hello process: hello 0
   ```
   After adding back following lines to rv-virt/nsh64: 
   
   ``` 
   CONFIG_NSH_SYMTAB=y
   CONFIG_NSH_SYMTAB_ARRAYNAME="g_symtab"
   CONFIG_NSH_SYMTAB_COUNTNAME="g_nsymbols"
   ```
   
   Then REL type hello can run.  So REL executables need these NSH_SYMTAB 
stuffs which CMake doesn't support for now as per issue #11304.
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to