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

Syrone Wong wong.syrone at gmail.com
Sun Feb 19 06:10:29 PST 2017


staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/bin/minidlna:
ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically
linked, interpreter /lib/ld-musl-armhf.so.1, n
ot stripped, with debug_info


Best Regards,
Syrone Wong


On Sun, Feb 19, 2017 at 9:36 PM, Felix Fietkau <nbd at nbd.name> wrote:
> On 2017-02-19 14:17, Syrone Wong wrote:
>> It seems rstrip.sh works now, but the error from readelf still exists.
>>
>> 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:
>> exec
>> utable
> Please show me the output of running:
> file staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-*/usr/bin/minidlna
>
> - Felix



More information about the Lede-dev mailing list