Giter Site home page Giter Site logo

.symver under gcc 9.x and 10.x about rr HOT 6 OPEN

signalogic avatar signalogic commented on August 28, 2024
.symver under gcc 9.x and 10.x

from rr.

Comments (6)

rocallahan avatar rocallahan commented on August 28, 2024

I have no idea about this.

from rr.

signalogic avatar signalogic commented on August 28, 2024

Ok thanks. I documented the problem in detail in the comments section at:

https://maskray.me/blog/2020-11-26-all-about-symbol-versioning

it seems corrected under gcc 11.x and higher

from rr.

rocallahan avatar rocallahan commented on August 28, 2024

-with just the version script, functionality is achieved, but I'm hoping there is way to avoid gcc version work-arounds

What do you mean "with just the version script"?

from rr.

signalogic avatar signalogic commented on August 28, 2024

cat > a.map <<e
GLIBC_2.2.5 { dlsym; };
e
gcc cmd line ... -Wl,--version-script=a.map -o a.so

from rr.

rocallahan avatar rocallahan commented on August 28, 2024

So that works with all versions of gcc? Any reason to not use that all the time?

from rr.

signalogic avatar signalogic commented on August 28, 2024

with gcc 4.x thru 10.x and only the version script, objdump on the resulting lib shows:

0000000000000000 g DO ABS 0000000000000000 GLIBC_2.2.5 GLIBC_2.2.5

which looks odd to me. With 11.x, the .symver is required, and objdump shows:

0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dlsym

which looks correct to me. I haven't tried 12.x yet, planning to do that

from rr.

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.