Hi, Can you tell us your github account and the branch in which you are currently having trouble so that we can reproduce the errors?
Masayuki ________________________________ From: Anjana <anj...@tataelxsi.co.in.INVALID> Sent: Thursday, June 18, 2020 15:23 To: dev@nuttx.apache.org <dev@nuttx.apache.org> Subject: Re: ELF Application Example(apps/examples/elf) undefined references issue in symtab.c Yes, I have added CELFFLAGS, CELFFLAGS, LDELFFLAGS in Make.defs file ________________________________ From: Ishikawa, Masayuki (SHES) <masayuki.ishik...@sony.com> Sent: 18 June 2020 11:33 To: dev@nuttx.apache.org <dev@nuttx.apache.org> Subject: Re: ELF Application Example(apps/examples/elf) undefined references issue in symtab.c ________________________________ **This is an external email. Please check the sender’s full email address (not just the sender name) and exercise caution before you respond or click any embedded link/attachment.** ________________________________ Hi Anjana, Did you add some flags (i.e. CELFFLAGS, CXXELFFLAGS and LDELFFLAGS) to scripts/Make.defs? The flags are needed to build elf modules. Regards, Masayuki ________________________________ 差出人: Anjana <anj...@tataelxsi.co.in.INVALID> 送信日時: 2020年6月18日 14:38 宛先: dev@nuttx.apache.org <dev@nuttx.apache.org> 件名: ELF Application Example(apps/examples/elf) undefined references issue in symtab.c Hello Team, I have added ELF Binary Loader support for RX65N target. I am currently testing my implementation using the apps/examples/elf/ example . When I enable the apps/examples/elf/ example application, and compile, I am getting the below error in symtab.c (Symbol Table) C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x14): undefined reference to `_fflush' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x1c): undefined reference to `_fopen' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x24): undefined reference to `_fprintf' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x2c): undefined reference to `_getpid' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x34): undefined reference to `_kill' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x3c): undefined reference to `_longjmp' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x44): undefined reference to `_memset' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x4c): undefined reference to `_nxsched_get_streams' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x54): undefined reference to `_printf' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x5c): undefined reference to `_pthread_attr_init' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x64): undefined reference to `_pthread_create' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x6c): undefined reference to `_pthread_exit' C:\cygwin64\home\USER\PR_To_Apache\Binary_Loader\incubator-nuttx\staging\libapps.a(symtab.home.USER.PR_To_Apache.Binary_Loader.incubator-nuttx-apps.examples.elf.o):(.rodata.g_elf_exports+0x74): undefined reference to `_pthread_join' ..... ..... The above error is obtained for all the symbols generated in symtab.c from mksymtab.sh. Has anyone faced any similar issue? Any help to resolve the issue would be really helpful. Regards, Anjana ________________________________ Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this message , or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors, omissions or contaminations in the contents of this message which might have occurred as a result of email transmission. If verification is required, please request for a hard-copy version. ________________________________