1
0
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:
Kaspar Schleiser 2021-11-11 11:50:54 +01:00 committed by GitHub
commit 1772628483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -14,7 +14,7 @@ def testfunc(child):
child.expect(r"BACKTRACE_SIZE: (\d+)\r\n")
trace_size = int(child.match.group(1))
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")