Giter VIP home page Giter VIP logo

Comments (5)

taviso avatar taviso commented on May 28, 2024

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.

jrmuizel avatar jrmuizel commented on May 28, 2024

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.

posutsai avatar posutsai commented on May 28, 2024

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.

Mis012 avatar Mis012 commented on May 28, 2024

@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)

see this:
https://gitlab.com/Mis012/dalvik_standalone/-/blob/art-master/bionic_translation/linker/linker.c#L1419-L1478

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.

taviso avatar taviso commented on May 28, 2024

from loadlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.