Giter Site home page Giter Site logo

Comments (7)

bharadwajy avatar bharadwajy commented on May 17, 2024

Thanks for the report.

At present, llvm-mctoll recognizes function arguments passed in GPRs (i.e., RDI, RSI, RDX, RCX, R8, R9 - as specified by AMD64 ABI). So, support to identify arguments of functions with 6 or less args is implemented.

Support to identify functions whose args are passed on stack (i.e., > 6 args) or via XMM registers needs to be implemented.

While it is on the list of features to be added, any help is highly appreciated.

from llvm-mctoll.

testhound avatar testhound commented on May 17, 2024

from llvm-mctoll.

bharadwajy avatar bharadwajy commented on May 17, 2024

Thanks for the clarification, Michael.

While I did note that the crash was reported for ARM binary, I was merely clarifying that the tool is expected to raise x86-64 binaries comprising of functions with 6 or less register arguments (not 4). That's all :-) As you noted in the initial report, this is most likely the reason for incorrect result from raising an x86 binary comprising of functions with more than 6 arguments.

Implementation of ARM raiser can also use some help and attention to ensure that it can handle all the test cases x86-64 raiser currently can.

from llvm-mctoll.

testhound avatar testhound commented on May 17, 2024

I will be working on a RISC-V port so I will be unable to improve X86 or ARM support unless the issues are generic. This is the main reason I filed this report, the backtrace seems to indicate a problem in MCInstRaiser::buildCFG; are you aware of any issues in the area?

from llvm-mctoll.

bharadwajy avatar bharadwajy commented on May 17, 2024

I am not aware of any issues in CFG construction. It is relatively simple and relies on MCInst info .

Any generic improvements while you work on a RISC-V port are gratefully appreciated.

from llvm-mctoll.

leibo-hust avatar leibo-hust commented on May 17, 2024

Hi, Do u have any ideas of the Issue #68 , it's really very important to me, I don't know where is the problem. Thanks a lot!

from llvm-mctoll.

bharadwajy avatar bharadwajy commented on May 17, 2024

Hi, Do u have any ideas of the Issue #68 , it's really very important to me, I don't know where is the problem. Thanks a lot!

It is not clear to me which aspect of #68 you are having trouble with. Please refer to the comments of that issue.

Please add any additional questions or comments to the relevant issue to minimize mis-communication.

Thanks!

from llvm-mctoll.

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.