Skip to content

__module_address undefined #10

@arm000

Description

@arm000

Attempting to build kgdboe against 5.10.0-rc7 and I'm getting an undefined symbol error during modpost for "__module_address" Looking through git history it appears this patch in upstream Linux broke kgdboe:

commit 34e64705ad415ed7a816e60ef62b42fe6d1729d9
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Jul 30 08:10:24 2020 +0200

    modules: unexport __module_address

    __module_address is only used by built-in code.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Jessica Yu <jeyu@kernel.org>

diff --git a/kernel/module.c b/kernel/module.c
index 6ee1739..e85d061 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -4464,7 +4464,6 @@ struct module *__module_address(unsigned long addr)
        }
        return mod;
 }
-EXPORT_SYMBOL_GPL(__module_address);

 /*
  * is_module_text_address - is this address inside module code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions