mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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
|
||||
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
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
ifeq ($(OS),Darwin)
|
||||
|
Loading…
Reference in New Issue
Block a user