<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Ah, I see. Yup, works on i686, gives me the message on x86-64.<br></blockquote><div><br></div><div>Yep </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
> If I remove this line from sources/targets/x86_64:<br>
><br>
> LINUXTHREADS_OLD=y<br>
><br>
> then ntpl tries to build but I get:<br>
><br>
> /home/david/Downloads/aboriginal-1.2.9/build/simple-cross-compiler-x86_64/lib/../x86_64-unknown-linux/bin/ld:<br>
> libpthread/nptl/libpthread_so.a(pthread_once.oS): relocation<br>
> R_X86_64_PC32 against `__fork_generation' can not be used when making a<br>
> shared object; recompile with -fPIC<br>
> /home/david/Downloads/aboriginal-1.2.9/build/simple-cross-compiler-x86_64/lib/../x86_64-unknown-linux/bin/ld:<br>
> final link failed: Bad value<br>
> collect2: ld returned 1 exit status<br>
> libpthread/nptl/Makefile.in:78: recipe for target 'lib/libpthread.so' failed<br>
> make: *** [lib/libpthread.so] Error 1<br>
<br>
Sigh. I very vaguely recall that...<br>
<br>
Ah: <a href="http://landley.net/hg/aboriginal/rev/1522" target="_blank">http://landley.net/hg/aboriginal/rev/1522</a><br>
<br>
Ok, yeah, I left a thing I need to fix. :)<br><br></blockquote><div><br></div><div>Doing this in nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S:</div><div><br></div><div><div> +       .hidden __fork_generation</div><div>         .comm   __fork_generation, 4, 4</div></div><div><br></div><div>fixes the compile problem - have to hide __fork_generation in the assembly, like the C declaration does.</div><div>(I have yet to test the TLS stuff in the image.)</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br></div></div>