<div class="gmail_quote">On Wed, Dec 22, 2010 at 2:48 AM, David Kirkby <span dir="ltr"><<a href="mailto:david.kirkby@onetel.net">david.kirkby@onetel.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Removing the compiler options<br>
 -G -Bdynamic<br>and replacing with<br>
 -shared -Wl,-soname,libcliquer.so<br>solved another text relocation issue in Sage<br>

<a href="http://trac.sagemath.org/sage_trac/ticket/9871" target="_blank">http://trac.sagemath.org/sage_trac/ticket/9871</a></blockquote><div><br></div><div>Well, it is the same problem here. I simply assumed that gcc was properly interpreting the Solaris flags for shared library building, but it dit not: it passed those flags to the linker, but did not realize that a shared library was being built</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">However, in that case, someone who did not know what they were doing<br>
converted a executable to a shared library, so I would not put too<br>
much weight into this.<br></blockquote><div> </div></div>Be glad that you did not bet any money on this, because that is what solves the problems in ECL :-)<div><br></div><div><div>-bash-4.0$ elfdump libecl.so |grep TEXTREL</div>

<div><br></div><div>I will produce a patch later on this afternoon, when I get unfirewalled internet access again.</div><div><br></div>Juanjo</div><div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br>

<a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>