[OpenWrt-Devel] More bad RPATH

John Crispin blogic at openwrt.org
Mon Feb 9 08:13:57 EST 2015



On 09/02/2015 14:07, Etienne Champetier wrote:
> Hi
> 
> 2015-02-09 14:01 GMT+01:00 John Crispin <blogic at openwrt.org 
> <mailto:blogic at openwrt.org>>:
> 
> 
> 
> On 09/02/2015 13:57, Etienne Champetier wrote:
>> Hi all,
>> 
>> To follow r44328
>> (https://dev.openwrt.org/browser/trunk?rev=44328) (jow fix for
>> cmake & RPATH) I've launched a full build of ar71xx to check all
>> bin/lib for bad
> RPATH
>> 
>> # cd ./staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx #
>> find . -type f | xargs -n1 -P24 file | grep ': ELF' | awk -F':' 
>> '{print $1}' | xargs -n1 ./checksec.sh --file | grep -v 'STACK
> CANARY' >
>> checksec.txt # awk '{print $NF}' checksec.txt > lib.txt # awk
>> '{print $NF}' checksec.txt | xargs -n1 readelf -a | grep RPATH | 
>> awk -F'[' '{print "["$2}' > rpath.txt
>> 
>> you can merge libs.txt and rpath.txt with # paste lib.txt
>> rpath.txt
>> 
>> I will try to fix later Also i think we should have a test that
>> fail the build if there is builroot path in the RPATH
>> 
>> Regards Etienne
> 
> can you build a script to turns this into a list of package names
> that are effected ?
> 
> 
> I'll try, but not before tonight
> 


$root/var/lib/opkg/* has files that will help you map the
file->ipkg/package


	John

> 
> 
> _______________________________________________ openwrt-devel
> mailing list openwrt-devel at lists.openwrt.org 
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list