Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Richard W.M. Jones
On Fri, Jul 28, 2017 at 01:39:50PM +0200, Florian Weimer wrote: > binutils 2.29 introduced an optimization which requires that in the > general case, applications and libraries linking against a DSO will have > to be rebuilt when the DSO change the implementation of functions (i.e., > changes to a

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Florian Weimer
On 07/28/2017 03:20 PM, Jakub Jelinek wrote: > I think it is seriously flawed optimization that should be at least turned > off by default. If people are willing to do this mess on ppc64le for some > libraries, they should request it explicitly, but we certainly shouldn't > make the implementation

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Jakub Jelinek
On Fri, Jul 28, 2017 at 03:20:49PM +0200, Jakub Jelinek wrote: > > Conceptually, this optimization inlines aspects of the called function > > into the caller, across DSO boundaries. In particular, as implemented > > now on ppc64le, the net effect is that the ABI changes if you add a > > global var

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Jakub Jelinek
On Fri, Jul 28, 2017 at 03:06:29PM +0200, Florian Weimer wrote: > On 07/28/2017 02:22 PM, Mark Wielaard wrote: > > On Fri, 2017-07-28 at 13:39 +0200, Florian Weimer wrote: > >> binutils 2.29 introduced an optimization which requires that in the > >> general case, applications and libraries linking

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Florian Weimer
On 07/28/2017 02:22 PM, Mark Wielaard wrote: > Hi Florian, > > On Fri, 2017-07-28 at 13:39 +0200, Florian Weimer wrote: >> binutils 2.29 introduced an optimization which requires that in the >> general case, applications and libraries linking against a DSO will have >> to be rebuilt when the DSO c

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Daniel P. Berrange
On Fri, Jul 28, 2017 at 01:39:50PM +0200, Florian Weimer wrote: > binutils 2.29 introduced an optimization which requires that in the > general case, applications and libraries linking against a DSO will have > to be rebuilt when the DSO change the implementation of functions (i.e., > changes to a

Re: Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Mark Wielaard
Hi Florian, On Fri, 2017-07-28 at 13:39 +0200, Florian Weimer wrote: > binutils 2.29 introduced an optimization which requires that in the > general case, applications and libraries linking against a DSO will have > to be rebuilt when the DSO change the implementation of functions (i.e., > changes

Recompiling/relinking dependent applications/libraries on DSO change

2017-07-28 Thread Florian Weimer
binutils 2.29 introduced an optimization which requires that in the general case, applications and libraries linking against a DSO will have to be rebuilt when the DSO change the implementation of functions (i.e., changes to a function body can change ABI). This is how many native programming lang