diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2025-03-24 14:55:56 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 09:20:26 +0100 |
commit | 4fab2d7628dd38f3fa8a5e615199350ecaeb17a8 (patch) | |
tree | b5e9f992ce2a4d2b60cf3169c2607590ec1f2cd1 /net/lapb/lapb_timer.c | |
parent | 4759670bc3e670069c055c2b33174813099fea4f (diff) |
objtool: Fix init_module() handling
If IBT is enabled and a module uses the deprecated init_module() magic
function name rather than module_init(fn), its ENDBR will get removed,
causing an IBT failure during module load.
Objtool does print an obscure warning, but then does nothing to either
correct it or return an error.
Improve the usefulness of the warning and return an error so it will at
least fail the build with CONFIG_OBJTOOL_WERROR.
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/366bfdbe92736cde9fb01d5d3eb9b98e9070a1ec.1742852846.git.jpoimboe@kernel.org
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions