illegal text-relocoation (direct reference) to (global,weak) for architecture i386 <p>Searching about shows this error in a number of mailing lists, but neither a general solution nor explanation is forthcoming.</p> <p>What does <code>illegal text-relocoation (direct reference) to (global,weak)</code> mean and how can it be resolved.</p> <p>Specifically, I have built ffmpeg-2.5.2 using <a href="https://github.com/kewlbear/FFmpeg-iOS-build-script" rel="nofollow">this script</a>. When building XCode tests that use it, there is the following error:</p> <pre><code>ld: illegal text-relocoation (direct reference) to (global,weak) _ff_h264_cabac_tables in &lt;...&gt;/myLib.a(cabac.o) from _ff_h264_decode_mb_cabac in &lt;...&gt;/myLib.a(h264_cabac.o) for architecture i386 </code></pre> <p>Does this require compiler/linker options to fix, or some kind of code change?</p>