Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__module_address undefined #10

Open
arm000 opened this issue Dec 12, 2020 · 0 comments
Open

__module_address undefined #10

arm000 opened this issue Dec 12, 2020 · 0 comments

Comments

@arm000
Copy link

arm000 commented Dec 12, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant