Re: -Bsymbolic breaks PMF comparison under ARM

2014-03-17 Thread Giuseppe D'Angelo
Hello, Il 16/01/2014 11:23, Will Newton ha scritto: x86 works a bit differently, and only sets st_value to non-zero if !pointer_equality_needed for that symbol. This is where things start to get a bit hazy for me. I guess the current behaviour is useful for someone, but I am not sure what would

Re: -Bsymbolic breaks PMF comparison under ARM

2014-01-16 Thread Giuseppe D'Angelo
I'm going to try with a Qt testcase ASAP. And indeed it works there. Il 16/01/2014 11:23, Will Newton ha scritto: That said, the fact that pointer equality using -Bsymbolic is reliant on these kinds of grungy linker internals suggests to me that it may not be a 100% reliable thing to use. Have

Re: -Bsymbolic breaks PMF comparison under ARM

2014-01-16 Thread Will Newton
On 16 January 2014 10:04, Giuseppe D'Angelo wrote: > Hello Will, > > Il 10/01/2014 15:50, Will Newton ha scritto: >> >> Thanks for the report and testcase. >> >> >> The attached patch to ld may help. I am not yet sure whether or not it >> is the correct approach but if it works for you that would

Re: -Bsymbolic breaks PMF comparison under ARM

2014-01-16 Thread Giuseppe D'Angelo
Hello Will, Il 10/01/2014 15:50, Will Newton ha scritto: Thanks for the report and testcase. The attached patch to ld may help. I am not yet sure whether or not it is the correct approach but if it works for you that would be interesting. Thanks again for the patch. The C++ testcase indeed wo

Re: -Bsymbolic breaks PMF comparison under ARM

2014-01-10 Thread Giuseppe D'Angelo
Hello Will, Il 10/01/2014 15:50, Will Newton ha scritto: The attached patch to ld may help. I am not yet sure whether or not it is the correct approach but if it works for you that would be interesting. thank you very much for the patch, I'll test it and report back to you shortly. In the

Re: -Bsymbolic breaks PMF comparison under ARM

2014-01-10 Thread Will Newton
On 10 January 2014 08:32, Giuseppe D'Angelo wrote: Hi Guiseppe, > the attached program changes the output from "true" to "false" when the > -Bsymbolic / -Bsymbolic-functions options are passed to GCC. This happens on > ARM -- on x86-64 output is always "true". > > The program involves a comparis

-Bsymbolic breaks PMF comparison under ARM

2014-01-10 Thread Giuseppe D'Angelo
Hello, the attached program changes the output from "true" to "false" when the -Bsymbolic / -Bsymbolic-functions options are passed to GCC. This happens on ARM -- on x86-64 output is always "true". The program involves a comparison, within a shared library, of a PMF defined inside the shared