Changes in kernel/meson.build [c21d4d6:62721d5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/meson.build

    rc21d4d6 r62721d5  
    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+).
     93kernel_link_args += ldflags_ignore_rwx_segments
    9194
    9295if CONFIG_LTO
     
    101104kernel_c_args = arch_kernel_c_args + kernel_defs + [
    102105        '-ffreestanding',
    103         # TODO: remove this flag
    104         cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
     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        ]),
    105121]
    106122
Note: See TracChangeset for help on using the changeset viewer.