[LEDE-DEV] rstrip fails to strip out debug info from ELF

Felix Fietkau nbd at nbd.name
Sun Feb 19 05:09:45 PST 2017


On 2017-02-19 13:52, Syrone Wong wrote:
> Hi, everyone.
> 
> To make it clear, I'm keeping all related output. If you need more
> info, please give me a pointer.
> 
> find /home/wong/github/lede-1/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/minidlna-1.1.6+git-8a996b/ipkg-arm_cortex-a9_vfpv3/minidlna
> -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm
> -rf
> 
> readelf: Error:
> '/home/wong/github/lede-1/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/minidlna-1.1.6+git-8a996b/ipkg-arm_cortex-a9_vfpv3/minidlna/usr/bin/minidlna,':
> No such file
> readelf: Error: 'with': No such file
> readelf: Error: 'debug_info': No such file
> 
> export CROSS="arm-openwrt-linux-muslgnueabi-"  NO_RENAME=1 ;
> NM="arm-openwrt-linux-muslgnueabi-nm"
> STRIP="/home/wong/github/lede-1/staging_dir/host/bin/sstrip"
> STRIP_KMOD="/home/wong/github/lede-1/scripts/strip-kmod.sh"
> PATCHELF="/home/wong/github/lede-1/staging_dir/host/bin/patchelf"
> /home/wong/github/lede-1/scripts/rstrip.sh
> /home/wong/github/lede-1/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/minidlna-1.1.6+git-8a996b/ipkg-arm_cortex-a9_vfpv3/minidlna
> 
> rstrip.sh: /home/wong/github/lede-1/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/minidlna-1.1.6+git-8a996b/ipkg-arm_cortex-a9_vfpv3/minidlna/usr/bin/minidlna:
> executable, with debug_info
Please try this commit from my staging tree:
https://git.lede-project.org/?p=lede/nbd/staging.git;a=commit;h=4c3fda719040735968a2a72258ad27feb1cc051c

- Felix



More information about the Lede-dev mailing list