Changeset c89ae25 in mainline for meson/arch


Ignore:
Timestamp:
2023-10-27T17:24:14Z (21 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
34120f10, b169619
Parents:
0373af9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:03:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:24:14)
Message:

Fix and enable —gc-sections in /kernel and /boot

Location:
meson/arch
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • meson/arch/amd64/meson.build

    r0373af9 rc89ae25  
    4545endif
    4646
    47 
    48 # TODO: Enable --gc-sections
    49 arch_kernel_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib', '-Wl,--no-gc-sections' ]
     47arch_kernel_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib' ]
    5048arch_uspace_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib', '-lgcc' ]
    5149
  • meson/arch/arm64/meson.build

    r0373af9 rc89ae25  
    4747# processor is in the execution mode that has unaligned access enabled. The
    4848# -mstrict-align option is therefore not needed.
    49 arch_boot_c_args = arch_uspace_c_args + [ '-fpic', '-fvisibility=hidden', '-fno-function-sections' ]
    50 arch_boot_link_args = [ '-Wl,-shared', '-Wl,--no-gc-sections' ] + ldflags_ignore_rwx_segments
     49arch_boot_c_args = arch_uspace_c_args + [ '-fpic', '-fvisibility=hidden' ]
     50arch_boot_link_args = [ '-Wl,-shared' ] + ldflags_ignore_rwx_segments
    5151
    5252if MACHINE == 'virt'
  • meson/arch/ia32/meson.build

    r0373af9 rc89ae25  
    5151]
    5252
    53 
    54 # TODO: Enable --gc-sections.
    55 arch_kernel_link_args = [ '-nostdlib', '-Wl,--no-gc-sections' ]
     53arch_kernel_link_args = [ '-nostdlib' ]
    5654arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
    5755
  • meson/arch/ppc32/meson.build

    r0373af9 rc89ae25  
    2828#
    2929
    30 # FIXME: enable --gc-sections
    31 
    3230_common_c_args = [ '-D__BE__', '-fno-omit-frame-pointer', '-m32', '-Wa,-a32', '-mcpu=powerpc' ]
    3331
    34 arch_kernel_c_args = _common_c_args + [ '-msoft-float', '-fno-function-sections' ]
     32arch_kernel_c_args = _common_c_args + [ '-msoft-float' ]
    3533arch_uspace_c_args = _common_c_args + [ CONFIG_FPU ? '-mhard-float' : '-msoft-float' ]
    3634arch_boot_c_args = arch_kernel_c_args
    37 arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000', '-Wl,--no-check-sections', '-Wl,--no-gc-sections' ]
     35arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
    3836arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ]
    3937arch_uspace_link_args += ldflags_ignore_rwx_segments
Note: See TracChangeset for help on using the changeset viewer.