-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unify the code of libelf and modlib, and delete the implementation of libelf #14100
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
Conversation
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
this commit is part two, all logic move to modlib, so we can remove it. and change all use defconfig Signed-off-by: anjiahao <anjiahao@xiaomi.com>
if modp is NULL, we can use export and nexport load externl symbol Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
undefine lib_free Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
depends on app 2696 |
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
|
I noticed that getprime crashes with rv-virt:knsh after merging this PR. |
|
Sorry @anjiahao1 I'm also having problems with knsh64: https://gist.github.com/lupyuen/5bfa7af7e2927e7fd1ba7b65e8c405e5 The previous commit works OK: https://gist.github.com/lupyuen/c6a32aab4ba186c53ffc4c1150541a8b Any idea why this is failing? Thanks! |
|
@anjiahao1 please take a look. |
|
Ok, I will fix this problem today. |
|
#14205 @lupyuen @masayuki2009 hello, this pr fix it |
|
Hi @anjiahao1 , we are facing problems on ESP32-S3 caused by this PR too I created an issue #14487 Could you please take a look? |
Hi @anjiahao1 , did you see this too? |
Sorry, I have some things to deal with during the week. I will fix this problem on Friday. |
Summary
Move the special usage of libelf to modlib, enhance and fix bugs in modlib, and then remove the libelf implementation. This will allow us to better reuse the code for dynamic loading
Impact
Dynamic loading/kernal mode
Testing
run
rv-virt:knshand pass ostest