RPATH problems in kdelibs

Alexander Neundorf neundorf at kde.org
Mon Dec 11 00:53:03 CET 2006


Hi,

On Monday 11 December 2006 00:49, Thiago Macieira wrote:
...
> I have not found any tool to do that. I think I can come up with
> something, but the problem is really that adding stuff to the ELF header
> could cause a lot to move. I am not sure how much moving around I can do
> in an ELF executable.
>
> The alternative is to add a dummy rpath with lots of padding. That one we
> can easily change. 

What's a good way to do the padding ? I mean just adding stuff to the RPATH 
might lead to new directories searched for libs when the app is loaded 
(security issues ?).
Maybe simply repeating the last RPATH until it's long enough ?

> The only drawback is the adding of RPATH with no
> RUNPATH, which seems to be the default on Linux: if this is the case,
> LD_LIBRARY_PATH has no effect.
>
> I still have seen no side-effect to using RUNPATH (as opposed to RPATH
> only).

I'll have a look.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list