[core] Move common flags to base.py

This commit is contained in:
Kuba Szczodrzyński
2023-05-29 22:26:12 +02:00
parent f1e41f7cc1
commit 41985e5743
3 changed files with 4 additions and 6 deletions

View File

@@ -56,6 +56,7 @@ queue.AppendPublic(
"--specs=nano.specs", "--specs=nano.specs",
"-Wl,--use-blx", "-Wl,--use-blx",
"-Wl,--undefined=gRamStartFun", "-Wl,--undefined=gRamStartFun",
"-Wl,--warn-section-align",
"-Wl,-wrap,aesccmp_construct_mic_iv", "-Wl,-wrap,aesccmp_construct_mic_iv",
"-Wl,-wrap,aesccmp_construct_mic_header1", "-Wl,-wrap,aesccmp_construct_mic_header1",
"-Wl,-wrap,aesccmp_construct_ctr_preload", "-Wl,-wrap,aesccmp_construct_ctr_preload",

View File

@@ -73,12 +73,6 @@ queue.AppendPublic(
("ARDUINO_SDK", 1), ("ARDUINO_SDK", 1),
], ],
LINKFLAGS=[ LINKFLAGS=[
"-Wl,--as-needed",
"-Wl,--build-id=none",
"-Wl,--cref",
"-Wl,--no-enum-size-warning",
"-Wl,--no-undefined",
"-Wl,--warn-common",
# wrappers from posix/time.c # wrappers from posix/time.c
"-Wl,-wrap,gettimeofday", "-Wl,-wrap,gettimeofday",
"-Wl,-wrap,settimeofday", "-Wl,-wrap,settimeofday",

View File

@@ -138,11 +138,14 @@ queue.AppendPublic(
LINKFLAGS=[ LINKFLAGS=[
"-g2", "-g2",
"-Os", "-Os",
"-Wl,--as-needed",
"-Wl,--build-id=none", "-Wl,--build-id=none",
"-Wl,--cref", "-Wl,--cref",
"-Wl,--gc-sections", "-Wl,--gc-sections",
"-Wl,--no-enum-size-warning", "-Wl,--no-enum-size-warning",
"-Wl,--no-wchar-size-warning", "-Wl,--no-wchar-size-warning",
"-Wl,--no-undefined",
"-Wl,--warn-common",
# malloc.c wrappers # malloc.c wrappers
"-Wl,-wrap,malloc", "-Wl,-wrap,malloc",
"-Wl,-wrap,calloc", "-Wl,-wrap,calloc",