Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Stripped via -s or via strip?


I never understood why strip's "--strip-unneeded" flag wasn't the default. Leaving that out can often enough give you a binary that just doesn't work.


Yup that's exactly what I mean. Nobody ever mentions that flag when recommending stripping, and it's frustrating when you realize it's broken. It's been a few years, but even when I finally discovered and tried that flag, it still didn't quite do the right thing. Either it failed to strip stuff that -s stripped, or it still produced a binary that didn't work... I forget what exactly the issue was. I just remember failing to find an alternative to cc -s that was guaranteed to work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: