Commit 0a2d6b80 authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Amit Pundir
Browse files

ANDROID: modpost: add an exception for CFI stubs



When CONFIG_CFI_CLANG is enabled, LLVM renames all address taken
functions by appending a .cfi postfix to their names, and creates
function stubs with the original names. The compiler always injects
these stubs to the text section, even if the function itself is
placed into init or exit sections, which creates modpost warnings.
This commit adds a modpost exception for CFI stubs to prevent the
warnings.

Bug: 117237524
Bug: 133186739
Change-Id: Ieb8bf20d0c3ad7b7295c535f598370220598cdb0
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>

[AmitP: Minor rebase conflicts due to upstream commit
        a4d26f1a ("modpost: skip ELF local symbols during section mismatch check")]
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 1eca8a7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment