1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: EPICS build system DESTDIR support |
From: | Matt Newville <[email protected]> |
To: | Michael Davidsaver <[email protected]> |
Cc: | EPICS Tech Talk <[email protected]> |
Date: | Thu, 6 Jul 2017 11:27:19 -0500 |
On 07/05/2017 06:45 PM, Andrew Johnson wrote:
> There are tools which can edit the RPATH setting in an ELF binary, but
> IIRC they can only shorten the path, never make it longer.
There is at least one utility 'patchelf' which does not have this
limitation.
> That's an
> indication to me that what they are doing probably isn't completely
> kosher,
ELF is a fairly complicated format with lots of cross linking between
sections. My guess is that other/older tools don't go to the trouble of
making all the necessary changes to re-layout the section holding the
rpath string.
> and I would rather not rely on arbitrary limits such as the
> length of the RPATH that we first compile in. Until the standard GNU
> binutils programs (objcopy and/or elfedit) provide a way to change an
> RPATH I would be reluctant to use this approach in Base itself.
I won't argue with this reluctance. I also don't like the idea of
supporting something like patchelf. One reason being that this doesn't
help with OSX and Mach binaries.