EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  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  <20172018  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 Thu, Jul 6, 2017 at 3:31 AM, Michael Davidsaver <[email protected]> wrote:
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.

FWIW, Mac OSX has a utility called install_name_tool that can modify RPATH.

I haven't seen that patchelf is limited to making RPATH shorter.  But I completely understand the reluctance to rely on a 3rd party utility like patchelf.

--Matt Newville


References:
Re: EPICS build system DESTDIR support J. Lewis Muir
Re: EPICS build system DESTDIR support Andrew Johnson
Re: EPICS build system DESTDIR support Michael Davidsaver

Navigate by Date:
Prev: Re: help - writing a table column from OPI BOY to PV Tomasz Brys
Next: EPUCS Qt release 3.5.1 Andrew C. Starritt
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS build system DESTDIR support Michael Davidsaver
Next: Re: EPICS build system DESTDIR support Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·