Comments (5)
There isn't a good way yet, If you change the CFLAGS
in the Makefile to -UNDEBUG
it will dump all the undefined imports (the output is quite verbose though).
I think it will be possible to generate stubs for each undefined import that prints out the unknown symbol, but I haven't implemented that yet! I should do that. I'll need to think about it, because I think each stub will have to be generated at runtime.
Maybe I can generate a table of callsites...
from loadlibrary.
The technique that I ended up using was stepping backwards to the caller using rr and then seeing where the offset into the import table was compared to other symbols that I dumped using -UNDEBUG
from loadlibrary.
Hi, I face the same issue while porting my dll file in Linux as well. Is there any progress to identify the undefined symbol? Also, I wonder is there any workaround after locate the undefined symbol. Thank you.
from loadlibrary.
@taviso: since it seems you didn't get around to implementing the automatic stub generation yet, you should know that I already spent a considerable amount of time doing precisely that for the purposes of my android translation layer (it's more like wine than like this project, but this part is definitely applicable)
it wasn't exactly easy to figure out all of the kinks, so I hope it saves you from having to deal with that yourself (though some of the kinks were aarch64 specific, not sure if this project works with aarch64 dlls)
note: I hereby dual-license that code to you under the original license AND GPLv2
from loadlibrary.
from loadlibrary.
Related Issues (20)
- APIs patching fails with selinux enabled
- Unable to load multiple dll images HOT 5
- mpclient: failed to resolve function HOT 16
- __rsignal(RSIG_BOOTENGINE) returned failure, missing definitions? HOT 13
- scan(): __rsignal(RSIG_SCAN_STREAMBUFFER) returned failure, file unreadable HOT 2
- Engine version 1.349.149.0 (2021/09/04) breaks mpclient HOT 2
- Replacing a thiscall function HOT 1
- Trying to load library and link to module HOT 2
- Is there any way to load a dll depends on msvcrt*.dll
- About msvc##.dll solution
- mpclient fails with latest defender update. HOT 2
- Trace/breakpoint trap (core dumped) HOT 2
- lastest windows defender can't work
- Segmentation fault at fixup_reloc HOT 3
- mpclient: function at 0x5a741c8a attempted to call an unknown symbol HOT 6
- malware not detected, while it should HOT 4
- Possible to check the virus database version and timestamp?
- MPClient - No debugging symbols found HOT 1
- Engine version 1.339.932.0 (2021/05/18) breaks mpclient HOT 3
- Take care of floating point registers during calling convention switches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loadlibrary.