cpu/native: add -no-pie to LINKFLAGS
This fixes the following warning on newer gcc/ld: ``` /usr/bin/ld: examples/hello-world/bin/native/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE ```
This commit is contained in:
parent
05593911bf
commit
a78689874a
@ -70,6 +70,13 @@ endif
|
|||||||
# XFA (cross file array) support
|
# XFA (cross file array) support
|
||||||
LINKFLAGS += -T$(RIOTBASE)/cpu/native/ldscripts/xfa.ld
|
LINKFLAGS += -T$(RIOTBASE)/cpu/native/ldscripts/xfa.ld
|
||||||
|
|
||||||
|
# fix this warning:
|
||||||
|
# ```
|
||||||
|
# /usr/bin/ld: examples/hello-world/bin/native/cpu/tramp.o: warning: relocation against `_native_saved_eip' in read-only section `.text'
|
||||||
|
# /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
|
||||||
|
# ```
|
||||||
|
LINKFLAGS += -no-pie
|
||||||
|
|
||||||
# clean up unused functions
|
# clean up unused functions
|
||||||
CFLAGS += -ffunction-sections -fdata-sections
|
CFLAGS += -ffunction-sections -fdata-sections
|
||||||
ifeq ($(OS),Darwin)
|
ifeq ($(OS),Darwin)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user