⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strip-exec

📁 ftp服务器源程序
💻
字号:
## strip-exec: Try to build the smallest executable possible from the current# source.### Slack 3.4 standard gcc -- change if you need to, but gcc 2.7.2.3 typically# generates much smaller code than egcs/pgcc#CC="gcc -V2.7.2.3 -bi486-unknown-linux-gnulibc1"CFLAGS="-O2 -D__OPTIMIZE_SIZE__ -m486"SECTIONS=".note.ABI-tag .gnu.version .rel.got .dtors .comment .note"EXEC=betaftpdrm -f *.s## Warning#echo "***"echo "*** WARNING: This script is intended for advanced users only, and"echo "*** is highly experimental. It will most likely fail -- please do"echo "*** not complain if it does."echo "***"## Compile#make distcleanCC="$CC" CFLAGS="$CFLAGS" ./configure --enable-dcachemake assembly-files## -malign-* doesn't remove _all_ .align occurrences :-)#for FILE in *.s; do	echo "Removing alignment from $FILE..."	grep -v .align < $FILE > `basename $FILE .s`2.s	mv `basename $FILE .s`2.s $FILEdonemake betaftpd-from-assembly-filesstrip --strip-all $EXECfor SECTION in $SECTIONS; do	echo Stripping $SECTION...	strip --remove-section=$SECTION $EXECdoneupx --best betaftpdls -l betaftpd

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -