Add -mtext-section-literals to avoid out of range relocations

This commit is contained in:
YAMAMOTO Takashi 2020-03-05 19:14:54 +09:00 committed by patacongo
parent e135c938d2
commit bf2cfd4b1a
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ LDNXFLATFLAGS = -e main -s 2048
# Loadable module definitions
CMODULEFLAGS = $(CFLAGS)
CMODULEFLAGS = $(CFLAGS) -mtext-section-literals
LDMODULEFLAGS = -r -e module_initialize
ifeq ($(WINTOOL),y)
@ -115,8 +115,8 @@ endif
# ELF module definitions
CELFFLAGS = $(CFLAGS)
CXXELFFLAGS = $(CXXFLAGS)
CELFFLAGS = $(CFLAGS) -mtext-section-literals
CXXELFFLAGS = $(CXXFLAGS) -mtext-section-literals
LDELFFLAGS = -r -e main
ifeq ($(WINTOOL),y)