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  <2017 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
<== Date ==> <== Thread ==>

Subject: Re: EPICS build system DESTDIR support
From: Michael Davidsaver <mdavidsaver@gmail.com>
To: Andrew Johnson <anj@aps.anl.gov>, "J. Lewis Muir" <jlmuir@imca-cat.org>
Cc: tech-talk@aps.anl.gov
Date: Thu, 6 Jul 2017 10:31:49 +0200
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.


Replies:
Re: EPICS build system DESTDIR support Matt Newville
References:
Re: EPICS build system DESTDIR support J. Lewis Muir
Re: EPICS build system DESTDIR support Andrew Johnson

Navigate by Date:
Prev: Re: Channel Access error under Scientific Linux 7 Michael Davidsaver
Next: Re: help - writing a table column from OPI BOY to PV Tomasz Brys
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
Navigate by Thread:
Prev: Re: EPICS build system DESTDIR support J. Lewis Muir
Next: Re: EPICS build system DESTDIR support Matt Newville
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
ANJ, 06 Jul 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·