Linux: added garbage collection of unused .text and .data sections at link time

pull/206/head
Silvano Seva 2023-11-05 18:27:29 +01:00
rodzic 7dc2ca5524
commit 12e2a0f18b
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -403,9 +403,9 @@ mod17_def = def + stm32f405_def + {'PLATFORM_MOD17': ''}
## -------------------------- Compilation arguments ----------------------------
##
linux_c_args = ['-DPLATFORM_LINUX']
linux_cpp_args = ['-std=c++14', '-DPLATFORM_LINUX']
linux_l_args = ['-lm', '-lreadline', '-lpulse-simple']
linux_c_args = ['-ffunction-sections', '-fdata-sections', '-DPLATFORM_LINUX']
linux_cpp_args = ['-ffunction-sections', '-fdata-sections', '-std=c++14', '-DPLATFORM_LINUX']
linux_l_args = ['-lm', '-lreadline', '-lpulse-simple', '-Wl,--gc-sections']
# Add AddressSanitizer if required
if get_option('asan')