mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #16186 from kaspar030/fix_native_notext
cpu/native: add `-no-pie` to LINKFLAGS
This commit is contained in:
commit
1772628483
@ -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)
|
||||||
|
@ -14,7 +14,7 @@ def testfunc(child):
|
|||||||
child.expect(r"BACKTRACE_SIZE: (\d+)\r\n")
|
child.expect(r"BACKTRACE_SIZE: (\d+)\r\n")
|
||||||
trace_size = int(child.match.group(1))
|
trace_size = int(child.match.group(1))
|
||||||
for i in range(trace_size):
|
for i in range(trace_size):
|
||||||
child.expect(r"0x[0-9a-f]{7,8}")
|
child.expect(r"0x[0-9a-f]+")
|
||||||
|
|
||||||
print("All tests successful")
|
print("All tests successful")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user