# git rev-parse -q --verify 19331e84c3873256537d446afec1f6c507f8c4ef^{commit} 19331e84c3873256537d446afec1f6c507f8c4ef already have revision, skipping fetch # git checkout -q -f -B kisskb 19331e84c3873256537d446afec1f6c507f8c4ef # git clean -qxdf # < git log -1 # commit 19331e84c3873256537d446afec1f6c507f8c4ef # Author: Nathan Chancellor # Date: Tue Dec 13 11:35:29 2022 -0700 # # modpost: Include '.text.*' in TEXT_SECTIONS # # Commit 6c730bfc894f ("modpost: handle -ffunction-sections") added # ".text.*" to the OTHER_TEXT_SECTIONS macro to fix certain section # mismatch warnings. Unfortunately, this makes it impossible for modpost # to warn about section mismatches with LTO, which implies # '-ffunction-sections', as all functions are put in their own # '.text.' sections, which may still reference functions in # sections they are not supposed to, such as __init. # # Fix this by moving ".text.*" into TEXT_SECTIONS, so that configurations # with '-ffunction-sections' will see warnings about mismatched sections. # # Link: https://lore.kernel.org/Y39kI3MOtVI5BAnV@google.com/ # Reported-by: Vincent Donnefort # Reviewed-and-tested-by: Alexander Lobakin # Reviewed-by: Sami Tolvanen # Tested-by: Vincent Donnefort # Signed-off-by: Nathan Chancellor # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 19331e84c3873256537d446afec1f6c507f8c4ef # < make -s -j 160 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- x86_64_defconfig # < make -s -j 160 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 160 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 160 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 # Build took: 0:02:09.639959