From 7b1d82ed92411450bf96e41796a7cb112f7a868a Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Thu, 1 Aug 2024 16:34:14 -0300 Subject: [PATCH] libcextract: Passes: Drop attributes when creating the KLP_RELOC entries Signed-off-by: Marcos Paulo de Souza --- libcextract/Passes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libcextract/Passes.cpp b/libcextract/Passes.cpp index 0e4bf96..0ddae3b 100644 --- a/libcextract/Passes.cpp +++ b/libcextract/Passes.cpp @@ -570,6 +570,7 @@ class IbtTailGeneratePass : public Pass if (sym_mod.empty()) sym_mod = "vmlinux"; + decl->dropAttrs(); decl->print(outstr); outstr << " \\\n" << "\tKLP_RELOC_SYMBOL(" << ctx->PatchObject << ", " <<