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

Cannot find section .dynamic #143

Open
tmcdos opened this issue Jan 11, 2018 · 6 comments
Open

Cannot find section .dynamic #143

tmcdos opened this issue Jan 11, 2018 · 6 comments

Comments

@tmcdos
Copy link

tmcdos commented Jan 11, 2018

If I issue the following command

patchelf --set-soname libc.so.61 /tmp/libc-2.17.so

there is no error, but if I now try the following command

patchelf --replace-needed ld-linux-x86-64.so.2 ld-linux.so.2 /tmp/libc-2.17.so

I get an error

patchelf: cannot find section '.dynamic'. The input file is most likely statically linked

Exactly the same result is happening if I issue the commands in the reverse order.
Seems like patchelf corrupts the ELF after it modifies the file for the first time.

@domenkozar
Copy link
Member

Could you attach the file so we can reproduce?

@tmcdos
Copy link
Author

tmcdos commented Jun 16, 2020

This was more than 2 years ago - I do not remember where did I get this file from.

@banxian
Copy link

banxian commented Sep 7, 2020

I have same issue on static linked elf files.
(which like busybox, does not need any shared library)

1 similar comment
@banxian
Copy link

banxian commented Sep 7, 2020

I have same issue on static linked elf files.
(which like busybox, does not need any shared library)

@jakirkham
Copy link

Can you please share a file with the issue?

@banxian
Copy link

banxian commented Sep 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants