Linux: added garbage collection of unused .text and .data sections at link time
This commit is contained in:
parent
7dc2ca5524
commit
12e2a0f18b
|
|
@ -403,9 +403,9 @@ mod17_def = def + stm32f405_def + {'PLATFORM_MOD17': ''}
|
||||||
## -------------------------- Compilation arguments ----------------------------
|
## -------------------------- Compilation arguments ----------------------------
|
||||||
##
|
##
|
||||||
|
|
||||||
linux_c_args = ['-DPLATFORM_LINUX']
|
linux_c_args = ['-ffunction-sections', '-fdata-sections', '-DPLATFORM_LINUX']
|
||||||
linux_cpp_args = ['-std=c++14', '-DPLATFORM_LINUX']
|
linux_cpp_args = ['-ffunction-sections', '-fdata-sections', '-std=c++14', '-DPLATFORM_LINUX']
|
||||||
linux_l_args = ['-lm', '-lreadline', '-lpulse-simple']
|
linux_l_args = ['-lm', '-lreadline', '-lpulse-simple', '-Wl,--gc-sections']
|
||||||
|
|
||||||
# Add AddressSanitizer if required
|
# Add AddressSanitizer if required
|
||||||
if get_option('asan')
|
if get_option('asan')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue