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

Strip breaks some processed binaries #3

Open
johnsonjh opened this issue May 21, 2024 · 2 comments
Open

Strip breaks some processed binaries #3

johnsonjh opened this issue May 21, 2024 · 2 comments

Comments

@johnsonjh
Copy link

johnsonjh commented May 21, 2024

Example:

$ ninja
$ cp polyfill-glibc out

$ ./polyfill-glibc --remove-kernel-version --add-hash --add-gnu-hash --remove-debug ./out
$ ./out
No input file(s) specified.

$ strip out
$ ./out
[1]    1807806 segmentation fault  ./out

Using sstrip produces the following output:

sstrip: out: File too large
sstrip: out: ELF file may have been corrupted!
@johnsonjh
Copy link
Author

It seems that it is the --add-hash option that causes strip and other tools to corrupt the binaries.

@corsix
Copy link
Owner

corsix commented May 21, 2024

The sstrip case looks like a bug in sstrip, I've opened BR903/ELFkickers#21 for it.

I'll look at strip in due course.

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

2 participants