Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-04 Thread Alexander Ivchenko
Thank you very much for clarification. >> > Having that in mind, we have: >> > 1) All shared libraries for Android are built with -Bsymbolic >> > 2) Dynamic loader throws an error if we are doing COPY relocation >> > against DT_SYMBOLIC libs. >> > >> > So any COPY relocation is doomed to failure..

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-04 Thread Ard Biesheuvel
2013/4/3 Andrew Haley > > On 04/03/2013 11:02 AM, Alexander Ivchenko wrote: > > > Thank you for your answers, seems that the question about the reason > > with default -Bsymbolic is still open.. we are not clairvoyant, but it > > is implemented in GCC so we should understand the reason :) > > Bio

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Andrew Haley
On 04/03/2013 11:02 AM, Alexander Ivchenko wrote: > Thank you for your answers, seems that the question about the reason > with default -Bsymbolic is still open.. we are not clairvoyant, but it > is implemented in GCC so we should understand the reason :) I suppose so, but we always follow the pl

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Alexander Ivchenko
Hi, Thank you for your answers, seems that the question about the reason with default -Bsymbolic is still open.. we are not clairvoyant, but it is implemented in GCC so we should understand the reason :) Having that in mind, we have: 1) All shared libraries for Android are built with -Bsymbolic 2

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Andrew Haley
On 03/29/2013 06:55 PM, Alexander Ivchenko wrote: > When compiling a shared library with "-mandroid -shared" the option > -Bsymbolic for linker is turned on by default. What was the reason > behind that default? Isn't using of -Bsymbolic somehow dangerous and > should be avoided..? Yes indeed, -

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Ard Biesheuvel
2013/4/3 Maxim Kuvyrkov > > Now, it appears the problem is that an application cannot use COPY > relocation to fetch a symbol out of shared -Bsymbolic library. I don't > quite understand why this is forbidden by Bionic's linker. I understand why > COPY relocations shouldn't be applied to the ins

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Maxim Kuvyrkov
On 30/03/2013, at 7:55 AM, Alexander Ivchenko wrote: > Hi, > > When compiling a shared library with "-mandroid -shared" the option > -Bsymbolic for linker is turned on by default. What was the reason > behind that default? Isn't using of -Bsymbolic somehow dangerous and > should be avoided..? (a

[Android] The reason why -Bsymbolic is turned on by default

2013-03-29 Thread Alexander Ivchenko
Hi, When compiling a shared library with "-mandroid -shared" the option -Bsymbolic for linker is turned on by default. What was the reason behind that default? Isn't using of -Bsymbolic somehow dangerous and should be avoided..? (as e.g. is explained in the mail from Richard Henderson http://gcc.