Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections #400

Closed
ferologics opened this issue Aug 22, 2022 · 2 comments
Labels

Comments

@ferologics
Copy link

ferologics commented Aug 22, 2022

Describe the bug

We're trying to --replace-needed on a .so library for a new name.

Steps To Reproduce

  1. download & unzip libswiftCore.so.zip
  2. run patchelf --replace-needed libc++_shared.so libc++_shared_24.so libswiftCore.so
  3. observe the error

Expected behavior

The command should succeed.

Environment

patchelf 0.15.0 / M1 Pro / mbp 16" 2021 / macOS Monterey 12.5.1 (21G83)

Additional context

Related to finagolfin/swift-android-sdk#65

@ferologics ferologics added the bug label Aug 22, 2022
@Survive2
Copy link

Survive2 commented Sep 7, 2022

this problem occurs to me,too!Do you have any ideas to how to fix it?

@ferologics
Copy link
Author

@Survive2 you should run this from ubuntu (the error only occurs on macOS)

Bo98 added a commit to Bo98/patchelf that referenced this issue Oct 10, 2022
Previous versions of patchelf prior to 0.12 could create empty PT_NOTE sections. For backwards compatibility reasons, we should not error on such binaries.

Fixes NixOS#400.
Bo98 added a commit to Bo98/patchelf that referenced this issue Oct 10, 2022
Previous versions of patchelf prior to 0.12 could create empty PT_NOTE sections. For backwards compatibility reasons, we should not error on such binaries.

Fixes NixOS#400.
@Mic92 Mic92 closed this as completed in 15f02b0 Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants