Changes in / [71b4444:590cb6d2] in mainline


Ignore:
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    r71b4444 r590cb6d2  
    8989        '-T', meson.current_build_dir() / '_link.ld',
    9090]
    91 # The kernel is built as ELF but then copied as a blob of bytes and
    92 # the permissions are not relevant anyway (needed for binutils 2.39+).
    93 kernel_link_args += ldflags_ignore_rwx_segments
    9491
    9592if CONFIG_LTO
     
    104101kernel_c_args = arch_kernel_c_args + kernel_defs + [
    105102        '-ffreestanding',
    106 
    107         cc.get_supported_arguments([
    108                 # TODO: remove this flag
    109                 '-Wno-cast-function-type',
    110 
    111                 # When accessing specific memory addresses that are below
    112                 # normal page size, the compiler may assume that we actually
    113                 # dereferenced NULL pointer and warns us about that.
    114                 # But in kernel we often need to access these addresses
    115                 # directly hence we need to ignore these warnings.
    116                 #
    117                 # TODO: might make more sense to disable this selectively
    118                 # in specific files (or better yet, for specific lines).
    119                 '--param=min-pagesize=0',
    120         ]),
     103        # TODO: remove this flag
     104        cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
    121105]
    122106
  • meson/arch/arm32/meson.build

    r71b4444 r590cb6d2  
    4242]
    4343
     44if CONFIG_FPU
     45        # This is necessary for kernel too, to allow vmsr insn and fpexc manipulation.
     46        # Use vfp32 to allow context save/restore of d16-d31 regs.
     47        arch_uspace_c_args += [ '-mfloat-abi=hard' ]
     48endif
     49
    4450arch_kernel_c_args = arch_uspace_c_args + [ '-mno-unaligned-access', '-mfpu=vfpv3' ]
    45 arch_kernel_c_args += cc.get_supported_arguments(['-mgeneral-regs-only' ])
    4651arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
    47 
    48 if CONFIG_FPU
    49     # Need to use softfp because our libgcc.a uses it too
    50     # softfp - generate code with soft-float calling conventions but allow use
    51     # of "hard" float instructions
    52     arch_uspace_c_args += [ '-mfloat-abi=softfp' ]
    53 endif
    5452arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ]
    5553
  • meson/arch/arm64/meson.build

    r71b4444 r590cb6d2  
    2828#
    2929
    30 arch_uspace_c_args = [
    31         '-D__LE__',
    32         '-fno-omit-frame-pointer',
    33         cc.get_supported_arguments(['-mno-outline-atomics']),
    34 ]
     30arch_uspace_c_args = [ '-D__LE__', '-fno-omit-frame-pointer' ]
    3531arch_kernel_c_args = arch_uspace_c_args + [ '-march=armv8-a+nofp+nosimd', '-mgeneral-regs-only' ]
    3632arch_kernel_link_args = [ '-nostdlib' ]
     
    4844# -mstrict-align option is therefore not needed.
    4945arch_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
     46arch_boot_link_args = [ '-Wl,-shared', '-Wl,--no-gc-sections' ]
    5147
    5248if MACHINE == 'virt'
  • meson/arch/ia64/meson.build

    r71b4444 r590cb6d2  
    3838arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
    3939arch_kernel_link_args = [ '-nostdlib', '-Wl,-EL' ]
    40 arch_boot_link_args = ldflags_ignore_rwx_segments
     40arch_boot_link_args = []
    4141
    4242
  • meson/arch/ppc32/meson.build

    r71b4444 r590cb6d2  
    3737arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000', '-Wl,--no-check-sections', '-Wl,--no-gc-sections' ]
    3838arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ]
    39 arch_uspace_link_args += ldflags_ignore_rwx_segments
    40 arch_boot_link_args = ldflags_ignore_rwx_segments
     39arch_boot_link_args = []
    4140
    4241rd_essential += [
  • meson/arch/riscv64/meson.build

    r71b4444 r590cb6d2  
    3333arch_kernel_link_args = [ '-nostdlib' ]
    3434arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
    35 arch_boot_link_args = ldflags_ignore_rwx_segments
     35arch_boot_link_args = []
    3636
    3737rd_essential += [
  • meson/part/compiler_args/meson.build

    r71b4444 r590cb6d2  
    110110extra_cppflags = extra_common_flags + [
    111111        '-fno-exceptions',
    112         '-Wno-misleading-indentation',
    113112        '-frtti',
    114113]
     
    129128        add_project_link_arguments(extra_cflags, language : [ lang ])
    130129endforeach
    131 
    132 # This flag is needed at several places, hence we define it here.
    133 #
    134 # For backwards compatibility we try to detect --no-warn-rwx-segments.
    135 # However, the autodetection done by Meson also results in
    136 # "cannot find entry symbol _start; defaulting to 00000000004000b0"
    137 # thus the option is never supported alone. So when detecting we also
    138 # specify --entry=main so that the stub source provided by Meson is build
    139 # correctly.
    140 ldflags_ignore_rwx_segments = []
    141 if cc.has_link_argument('-Wl,--no-warn-rwx-segments,--entry=main')
    142     ldflags_ignore_rwx_segments += ['-Wl,--no-warn-rwx-segments']
    143 endif
  • meson/part/tools/meson.build

    r71b4444 r590cb6d2  
    6161endif
    6262
    63 # On some distributions (e.g. Arch Linux), genisoimage is actually a symbolic
    64 # link to mkisofs. However, they do not accept exactly the same options.
    65 # Thus we check if genisoimage is a symbolic link to mkisofs and if it is so,
    66 # we switch to mkisofs as that is the native application available.
    67 fs = import('fs')
    6863genisoimage = find_program('genisoimage', required: false)
    69 _mkisofs = find_program('mkisofs', required: false)
    70 if genisoimage.found() and not (fs.is_symlink(genisoimage.full_path()) and _mkisofs.found() and fs.is_samepath(genisoimage.full_path(), _mkisofs.full_path()))
     64if genisoimage.found()
    7165        genisoimage_type = 'genisoimage'
    7266else
    73         genisoimage = _mkisofs
     67        genisoimage = find_program('mkisofs', required: false)
    7468        if genisoimage.found()
    7569                genisoimage_type = 'mkisofs'
Note: See TracChangeset for help on using the changeset viewer.