We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ld.so
Describe the bug Just parse and write ld.so cause it stops to work
To Reproduce
[yangff@Yangff-Laptop tests]$ cp /lib64/ld-linux-x86-64.so.2 ./ld.so [yangff@Yangff-Laptop tests]$ python Python 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import lief >>> lief.parse('ld.so').write('ld1.so') >>> exit() [yangff@Yangff-Laptop tests]$ chmod +x ./ld1.so [yangff@Yangff-Laptop tests]$ ./ld1.so Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 534: elf_machine_rela_relative: Assertion `ELFW(R_TYPE) (reloc->r_info) == R_X86_64_RELATIVE' failed!
Expected behavior
[yangff@Yangff-Laptop tests]$ ./ld.so ./ld.so: missing program name Try './ld.so --help' for more information.
Environment (please complete the following information):
ld.so (GNU libc) stable release version 2.35.
0.12.1-c7b3ce3b
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Modifying ld.so is challenging :)
Sorry, something went wrong.
romainthomas
No branches or pull requests
Describe the bug
Just parse and write
ld.so
cause it stops to workTo Reproduce
Expected behavior
Environment (please complete the following information):
ld.so (GNU libc) stable release version 2.35.
0.12.1-c7b3ce3b
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: