[Buildroot] [PATCH] wireshark: remove RPATH tag

Baruch Siach baruch at tkos.co.il
Mon Nov 17 13:38:53 UTC 2014


Hi Gustavo,

On Mon, Nov 17, 2014 at 09:45:48AM -0300, Gustavo Zacarias wrote:
> On 11/17/2014 09:33 AM, Baruch Siach wrote:
> > It seems that libtool decides to set rpath based on .la files we have in 
> > staging. Some of them (e.g. glib provided libs, and libnl) set either 
> > 'dependency_libs' (glib) or 'libdir' (libnl) to paths under output/build 
> > or staging. wireshark also links its own libraries (e.g. wiretap, epan) 
> > using local source tree .la files. I'm not sure how to solve this in the 
> > general case. It probably requires fixing up all these .la files.
> 
> There's a good briefing at https://wiki.debian.org/RpathIssue
> Fixing up is nice, however doing it in a good manner will require many
> autoreconfs and being proactive about it.
> Stripping RPATHs is probably a faster way out (via chrpath).
> In the end this could be considered as a build information leak, not
> terribly useful but doesn't look good either.

chrpath can indeed nullify the ELF RPATH tag, but it leaves the ELF string 
table alone. This means that the build paths information leak is still there, 
though somewhat less noticeable.

Until we find a better solution I think this patch can go in for -next.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list