-
Notifications
You must be signed in to change notification settings - Fork 300
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
symbols with same (empty) name but different type #202
Comments
Here is simpler reproducer, with base kernel containing kernel/test3.c with content: #include <linux/init.h>
#include <linux/export.h>
static int dummy;
void test_function30(void)
{
dummy = 1;
}
void test_function31(void)
{
dummy = 2;
}
EXPORT_SYMBOL(test_function30);
EXPORT_SYMBOL(test_function31); and kpatch patch: diff --git a/kernel/test3.c b/kernel/test3.c
index 50d3c86..91a43a1 100644
--- a/kernel/test3.c
+++ b/kernel/test3.c
@@ -5,7 +5,9 @@ static int dummy;
void test_function30(void)
{
- dummy = 1;
+ int i;
+ for (i = 0; i < 10; i++)
+ dummy += i;
}
void test_function31(void)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I came across a kpatch-build error, while trying following patch:
Looking at debug output of patched object, I could see 2 symbols with same (empty) name ""
but different type:
I tried following change, which allowed me to progress further:
Debug output:
but then I hit change in jump_table, which looks unsupported at the moment, according to commit 1622123.
The text was updated successfully, but these errors were encountered: