Re: segfault using __thread variable

2013-12-12 Thread Michael Hudson-Doyle
Will Newton writes: > On 12 December 2013 21:59, Michael Hudson-Doyle > wrote: >> Will Newton writes: [snp] >>> I would guess that 0x64c000 is the base of the GOT and 776 is the >>> offset into it (but I could be wrong). objdump -h will give you the >>> layout of the sections, objdump -R

Re: segfault using __thread variable

2013-12-12 Thread Will Newton
On 12 December 2013 21:59, Michael Hudson-Doyle wrote: > Will Newton writes: > >> On 12 December 2013 21:02, Michael Hudson-Doyle >> wrote: >>> Hi, >>> >>> Thanks for the respsonse. >>> >>> Will Newton writes: >>> On 12 December 2013 08:00, Michael Hudson-Doyle wrote: > Hi all, >

Re: segfault using __thread variable

2013-12-12 Thread Michael Hudson-Doyle
Will Newton writes: > On 12 December 2013 21:02, Michael Hudson-Doyle > wrote: >> Hi, >> >> Thanks for the respsonse. >> >> Will Newton writes: >> >>> On 12 December 2013 08:00, Michael Hudson-Doyle >>> wrote: Hi all, I have a bit of a strange one. I'm not after a full solution

Re: segfault using __thread variable

2013-12-12 Thread Will Newton
On 12 December 2013 21:02, Michael Hudson-Doyle wrote: > Hi, > > Thanks for the respsonse. > > Will Newton writes: > >> On 12 December 2013 08:00, Michael Hudson-Doyle >> wrote: >>> Hi all, >>> >>> I have a bit of a strange one. I'm not after a full solution, just any >>> hints that quickly com

Re: segfault using __thread variable

2013-12-12 Thread Michael Hudson-Doyle
Michael Hudson-Doyle writes: > I guess I don't understand the adrp code. My understanding is that: > > 0x004b4b78 <+12>:adrpx0, 0x64c000 > > would result in 0x4b4000 + 0x64c000 in x0 and then > > 0x004b4b7c <+16>:ldr x0, [x0,#776] > > reads from 0x4b4000 + 0x64c00

Re: segfault using __thread variable

2013-12-12 Thread Michael Hudson-Doyle
Hi, Thanks for the respsonse. Will Newton writes: > On 12 December 2013 08:00, Michael Hudson-Doyle > wrote: >> Hi all, >> >> I have a bit of a strange one. I'm not after a full solution, just any >> hints that quickly come to mind :) >> >> After a few simple patches I have a build of mongodb

Re: segfault using __thread variable

2013-12-12 Thread Will Newton
On 12 December 2013 08:00, Michael Hudson-Doyle wrote: > Hi all, > > I have a bit of a strange one. I'm not after a full solution, just any > hints that quickly come to mind :) > > After a few simple patches I have a build of mongodb for aarch64 (built > with gcc-4.8). However, all of the test b

segfault using __thread variable

2013-12-12 Thread Michael Hudson-Doyle
Hi all, I have a bit of a strange one. I'm not after a full solution, just any hints that quickly come to mind :) After a few simple patches I have a build of mongodb for aarch64 (built with gcc-4.8). However, all of the test binaries that the build spits out immediately segfault. gdb-ing show