<div dir="ltr">I see the following error while building OS X x86_64 dynamic shared library libx264.dylib:<div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New';color:rgb(255,0,0)">
<b>ld: pointer in read-only segment not allowed in slidable image, used in coeff_last_sse2 from common/x86/cabac-a.o</b></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New';color:rgb(255,0,0)">
<b><br></b></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New';color:rgb(255,0,0)"><b><span class="" style="color:rgb(34,34,34);font-family:arial;font-size:small;font-weight:normal">I think in the case of a dynamic shared library that pointers to relocatable code may not be stored in read-only memory because the dynamic loader dyld needs to update those pointers when the library image virtual address is changed.</span><br>
</b></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New';color:rgb(255,0,0)"><b><span class="" style="color:rgb(34,34,34);font-family:arial;font-size:small;font-weight:normal"><br>
</span></b></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="" style="font-family:arial;font-size:small;font-weight:normal"></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">diff --git a/common/x86/cabac-a.asm b/common/x86/cabac-a.asm</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">index 74dbf93..d7afe83 100644</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">--- a/common/x86/cabac-a.asm</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">+++ b/common/x86/cabac-a.asm</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">@@ -62,6 +62,10 @@ cextern coeff_last64_sse2</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> cextern coeff_last64_sse2_lzcnt</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> cextern coeff_last64_avx2_lzcnt</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> </font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">+%ifidn __OUTPUT_FORMAT__,macho64</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">+    SECTION .data ALIGN=8</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">+%endif</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff">+</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> coeff_last_sse2:       COEFF_LAST_TABLE       mmx2,       sse2,       sse2, 16, 15, 16, 4, 15, 64, 16, 15, 16, 64, 16, 15, 16, 64</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> coeff_last_sse2_lzcnt: COEFF_LAST_TABLE mmx2_lzcnt, sse2_lzcnt, sse2_lzcnt, 16, 15, 16, 4, 15, 64, 16, 15, 16, 64, 16, 15, 16, 64</font></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal 'Courier New'"><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#0000ff"> coeff_last_avx2_lzcnt: COEFF_LAST_TABLE mmx2_lzcnt, avx2_lzcnt, sse2_lzcnt, 16, 15, 16, 4, 15, 64, 16, 15, 16, 64, 16, 15, 16, 64</font></span></b></p>
<div style="color:rgb(34,34,34)"><b><br></b></div><p></p></div></div>