Changes in kernel/meson.build [c21d4d6:62721d5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/meson.build
rc21d4d6 r62721d5 89 89 '-T', meson.current_build_dir() / '_link.ld', 90 90 ] 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 91 94 92 95 if CONFIG_LTO … … 101 104 kernel_c_args = arch_kernel_c_args + kernel_defs + [ 102 105 '-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 ]), 105 121 ] 106 122
Note:
See TracChangeset
for help on using the changeset viewer.