Added -fdata-sections directive to compiler and linker arguments for ARM targets

This commit is contained in:
Silvano Seva 2023-05-31 22:24:33 +02:00
parent cadec3dfd4
commit b14dd86728
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ openocd = '/usr/local/bin/openocd'
c_args = [ c_args = [
'-D_DEFAULT_SOURCE=1', '-D_DEFAULT_SOURCE=1',
'-ffunction-sections', '-ffunction-sections',
'-fdata-sections',
'-Wall', '-Wall',
'-Werror=return-type', '-Werror=return-type',
'-g', '-g',
@ -29,6 +30,7 @@ c_args = [
cpp_args = [ cpp_args = [
'-D_DEFAULT_SOURCE=1', '-D_DEFAULT_SOURCE=1',
'-ffunction-sections', '-ffunction-sections',
'-fdata-sections',
'-Wall', '-Wall',
'-Werror=return-type', '-Werror=return-type',
'-g', '-g',
@ -48,6 +50,8 @@ c_link_args = [
'-mthumb', '-mthumb',
'-mfloat-abi=hard', '-mfloat-abi=hard',
'-mfpu=fpv4-sp-d16', '-mfpu=fpv4-sp-d16',
'-ffunction-sections',
'-fdata-sections',
'-fno-exceptions', '-fno-exceptions',
'-fno-rtti', '-fno-rtti',
'-Wl,-L../lib/miosix-kernel', '-Wl,-L../lib/miosix-kernel',