<div dir="ltr">On Thu, Jan 5, 2012 at 13:53, Joachim Breitner <span dir="ltr">&lt;<a href="mailto:nomeata@debian.org">nomeata@debian.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1z4">(But I am really wondering why the linker cannot do something that has<br>
the same effect as objcopy --prefix-symbols, but on the fly.)</div></blockquote></div><br>Some of them can; notably the binutils ld, which comes from the same source as and uses the same mechanism as objcopy.<div><br></div>
<div>The linker on OS X doesn&#39;t have this particular mechanism (although I think it has other features that could be used toward the same end, if not in the same way), and binutils ld does not work properly on OS X (nor does objcopy, again because it&#39;s the same mechanisms; the BFD library doesn&#39;t support Mach-O properly.  This is probably why Apple at first shipped a crippled version and later removed it entirely.  You can install a full set from MacPorts, but it breaks a *lot* of stuff...).</div>
<div><br></div><div>And Solaris&#39;s ld has still another way to do this kind of thing, IIRC.<br clear="all"><div><br></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br><br>
</div></div>