strip on certain object files in Amazon Linux, it errors with:
$ sudo strip dfitpack.so
BFD: st6qqyd2: Not enough room for program headers, try linking with -N
strip:st6qqyd2[.note.gnu.build-id]: Bad value
The object files are created by
pip install, packages including numpy, sklearn, pandas, xgboost, numexpr. What we are trying to do is strip down the code and object files to fit within an AWS Lambda 250MB limit.
A google search finds references to binutils on GNU mailing lists, but most tips are intended for developers building their own code, and to making changes in header files and the like. I suspect there is a build configuration change I can make when running
pip install, and am hoping that someone with a better understanding of binutils can help.
$ uname -a
Linux ... 4.4.5-15.26.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ yum info binutils
Version : 126.96.36.199.1
Release : 55.65.amzn1