Add -mtext-section-literals to avoid out of range relocations
This commit is contained in:
parent
e135c938d2
commit
bf2cfd4b1a
@ -104,7 +104,7 @@ LDNXFLATFLAGS = -e main -s 2048
|
|||||||
|
|
||||||
# Loadable module definitions
|
# Loadable module definitions
|
||||||
|
|
||||||
CMODULEFLAGS = $(CFLAGS)
|
CMODULEFLAGS = $(CFLAGS) -mtext-section-literals
|
||||||
|
|
||||||
LDMODULEFLAGS = -r -e module_initialize
|
LDMODULEFLAGS = -r -e module_initialize
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
@ -115,8 +115,8 @@ endif
|
|||||||
|
|
||||||
# ELF module definitions
|
# ELF module definitions
|
||||||
|
|
||||||
CELFFLAGS = $(CFLAGS)
|
CELFFLAGS = $(CFLAGS) -mtext-section-literals
|
||||||
CXXELFFLAGS = $(CXXFLAGS)
|
CXXELFFLAGS = $(CXXFLAGS) -mtext-section-literals
|
||||||
|
|
||||||
LDELFFLAGS = -r -e main
|
LDELFFLAGS = -r -e main
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user