Coder Social home page Coder Social logo

Comments (5)

langeseb avatar langeseb commented on June 7, 2024 5

The same issue is also true for --remove-needed option.
I wonder, if the same fix could also be used in that case.
Further: the fix replaces the lib within the gnu.version_r section, but leaves the meta info/comment/description line untouched, e.g.:
0x0000 Version 1 File: libReplaced.so Cnt: 1
0x0010 Name: [OLDLIBNAME] Flags: [OLDFLAGS] Version: [OLDVERSION]

from patchelf.

njsmith avatar njsmith commented on June 7, 2024

(sorry, fat-fingered that and submitted the new issue before writing it. Have now edited the original issue to actually describe what's happening)

from patchelf.

njsmith avatar njsmith commented on June 7, 2024

CC: @rmcgibbo @matthew-brett @ogrisel

It looks like the .gnu.version_r section is very simple: http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/symversion.html#SYMVERRQMTS

there's a start towards fixing this here: master...njsmith:master

just missing the core logic, and also it's probably totally broken because it was written in an hour starting from knowing nothing about ELF or patchelf internals and has never even been compiled :-) but that's how far I managed to get today so figured I'd make it public

from patchelf.

njsmith avatar njsmith commented on June 7, 2024

The branch above now seems to work... probably still need to add a test case, though

from patchelf.

njsmith avatar njsmith commented on June 7, 2024

PR: #85

from patchelf.

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.