GithubHelp home page GithubHelp logo

gnu linker script? about ddisasm HOT 4 CLOSED

Cofflag avatar Cofflag commented on June 3, 2024
gnu linker script?

from ddisasm.

Comments (4)

adamjseitz avatar adamjseitz commented on June 3, 2024

gtirb-pprinter (which is the component responsible for generating assembly and other artifacts for re-assembly, e.g., symbol version scripts - emitting an IR from ddisasm and using gtirb-pprinter directly gives some more options than ddisasm's --asm option) does not currently support generating linker scripts.

Is the idea of generating a linker script intended to ensure each section retains the original address? Or are there additional problems that it would solve?

#59 is a related issue, which has a bit more discussion of additional challenges with regenerating binaries identical to the original (in particular, this comment from aeflores).

from ddisasm.

aeflores avatar aeflores commented on June 3, 2024

Generating linker scripts could help with some of the discrepancies, and we have considered implementing this functionality (in gtirb-pprinter), but as @adamjseitz said, this is not yet supported.
If want to implement it yourself, please take a look at our contributors guide https://github.com/GrammaTech/gtirb-pprinter/blob/master/CONTRIBUTING.md

from ddisasm.

Cofflag avatar Cofflag commented on June 3, 2024

does not currently support generating linker scripts.

I see. Thanks.

Is the idea of generating a linker script intended to ensure each section retains the original address?

Mostly yes. And it enables users to inject code to where they want without using pure address in assembly(which is not easy to modify)

If want to implement it yourself, please take a look at our contributors guide

Thanks.

from ddisasm.

Cofflag avatar Cofflag commented on June 3, 2024

Is the idea of generating a linker script intended to ensure each section retains the original address?

Oh, this also prevent gcc from using its default linker script which removes vanilla sections of the elf.

from ddisasm.

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.