[OpenWrt-Devel] More bad RPATH

Etienne Champetier champetier.etienne at gmail.com
Mon Feb 9 08:07:05 EST 2015


Hi

2015-02-09 14:01 GMT+01:00 John Crispin <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150209/6802e965/attachment.htm>
-------------- next part --------------
_______________________________________________
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