GithubHelp home page GithubHelp logo

Custom ld script about min-sized-rust HOT 4 CLOSED

johnthagen avatar johnthagen commented on May 28, 2024
Custom ld script

from min-sized-rust.

Comments (4)

johnthagen avatar johnthagen commented on May 28, 2024 3

@cbytensky This looks cool. I think the proper format for min-sized-rust itself would be for this to be put into a blog post that we reference. Optionally, it could probably be a GitHub Gist with some explanation text and the code above.

from min-sized-rust.

jirutka avatar jirutka commented on May 28, 2024 1

The first section in the PT_DYNAMIC segment is not the .dynamic section

As this error message suggests, it’s designed for dynamically linked binaries, not static; x86_64-unknown-linux-musl target is for static linking. You can try it with -C target-feature=-crt-static to force dynamic linking (with native libraries, not rust libraries).

from min-sized-rust.

xqdoo00o avatar xqdoo00o commented on May 28, 2024

Hi, is the ld script working for target x86_64-unknown-linux-musl, I tried shows the error. thanks!

 /target/x86_64-unknown-linux-musl/release/deps/sd-51a80456a558079f: The first section in the PT_DYNAMIC segment is not the .dynamic section
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status

from min-sized-rust.

cbytensky avatar cbytensky commented on May 28, 2024

I wrote more detailed issue: #44
So closing this issue.

from min-sized-rust.

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.