New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ocamlopt -pack on macos 10.3.X fails #2634
Comments
Comment author: administrator
That's right. It seems that Apple's version of objcopy cannot rename symbols. This means that option -pack doesn't work on Mac OS X. You could file a I hope someday we'll have the -pack functionality without depending on objcopy, -- Damien |
Comment author: administrator Le 11 juin 04, à 15:31, Damien Doligez a écrit :
I will report a bug to Apple. However I do not have any knowledge of
Thanks, Daniel [1] http://sources.redhat.com/ml/binutils/2003-10/threads.html#00572 |
Comment author: administrator
Actually, the objcopy operation needed for ocamlopt -pack is --redefine-sym: /usr/libexec/binutils/objcopy --redefine-sym _f=_g test.o pretest.o
|
Comment author: administrator see also #3320 |
Comment author: administrator Hello, (replying to an old bug report of yours)
I have implemented ocamlopt -pack on Mac OS X, using ld instead of objcopy. -- Damien |
Comment author: administrator Le 27 janv. 05, à 13:14, Damien Doligez a écrit :
Thanks you very much for this. Daniel P.S. |
Original bug ID: 2634
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name:
Version: 3.07+2
OS: MacOS 10.3.4
Submission from: 129.67.76.83.cust.bluewin.ch (83.76.67.129)
Dear bugmaster,
I'm unable to use -pack with native code under (at least) MacOS 10.3.3 and
10.3.4. The steps below reproduce the bug. However, I suspect this is a problem
of the objcopy that comes on MacOS 10.3.X (GNU objcopy 2.13.90 20030128) itself
since I have no problem with -pack for bytecode and no problem with native code
on Linux with a later version of objcopy (GNU objcopy 2.13.90.0.18 20030206).
Thanks for your work,
Daniel
The text was updated successfully, but these errors were encountered: