Skip to content

Commit

Permalink
boards: spresense: Add -fno-common for loadable ELF
Browse files Browse the repository at this point in the history
Add -fno-common compile option for building loadable ELF to prevent
SHN_COMMON relocations. Fix an issue that may cause loadable ELF to
fail to load.
  • Loading branch information
SPRESENSE committed Jul 19, 2022
1 parent 4682f2e commit f07d031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/arm/cxd56xx/spresense/scripts/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ endif

# ELF module definitions

CELFFLAGS = $(CFLAGS)
CXXELFFLAGS = $(CXXFLAGS)
CELFFLAGS = $(CFLAGS) -fno-common
CXXELFFLAGS = $(CXXFLAGS) -fno-common

LDELFFLAGS = -r -e main
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
Expand Down

0 comments on commit f07d031

Please sign in to comment.