You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/19 18:11:09 UTC

[GitHub] [incubator-nuttx-apps] patacongo commented on issue #481: Elf loader sample app doesn't build

patacongo commented on issue #481:
URL: https://github.com/apache/incubator-nuttx-apps/issues/481#issuecomment-730547852


   There are changes needed to the nucleo-h743zi/scripts/Make.defs file as 
   well.
   
   See diff stm32h7/nucleo-h743zi/scripts/Make.defs 
   cxd56xx/spresense/scripts/Make.defs
   
   Here are some necessary additions:
   
   72a79,103
    > # Loadable module definitions
    >
    > CMODULEFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
    >
    > LDMODULEFLAGS = -r -e module_initialize
    > ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
    >   LDMODULEFLAGS += -T "${shell cygpath -w 
   $(TOPDIR)/libs/libc/modlib/gnu-elf.ld}"
    > else
    >   LDMODULEFLAGS += -T $(TOPDIR)/libs/libc/modlib/gnu-elf.ld
    > endif
    >
    > # ELF module definitions
    >
    > CELFFLAGS = $(CFLAGS)
    > CXXELFFLAGS = $(CXXFLAGS)
    >
    > LDELFFLAGS = -r -e main
    > ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
    >   LDELFFLAGS += -T "${shell cygpath -w 
   $(BOARD_DIR)$(DELIM)scripts$(DELIM)gnu-elf.ld}"
    > else
    >   LDELFFLAGS += -T $(BOARD_DIR)$(DELIM)scripts$(DELIM)gnu-elf.ld
    > endif
   
   The latter ELF definitions are certainly necessary.
   
   On 11/19/2020 12:00 PM, Nuno Felicio wrote:
   >
   > hi @btashton <https://github.com/btashton> ,
   >
   > thanks for the reply,
   >
   > I'm trying with nucleo-h743zi/nsh and enabling the Elf support and the 
   > Elf loader sample App... should it not work?
   >
   > I had a look at the spresense/configs/elf/defconfig file, and there is 
   > no option difference that would explain the failure...
   >
   > Is this an issue with the link scripts?
   >
   > Thanks
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub 
   > <https://github.com/apache/incubator-nuttx-apps/issues/481#issuecomment-730541897>, 
   > or unsubscribe 
   > <https://github.com/notifications/unsubscribe-auth/ABFUG6TU4YE5FVH22Z3FPKLSQVMKXANCNFSM4TXY3IMA>.
   >
   


----------------------------------------------------------------
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.

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