Displaying 2 results from an estimated 2 matches for "mh_byndle".
2004 Jun 20
0
[LLVMdev] Problems loading passes on Mac OS X
...#39;, which creates
Mach-O MH_DYLIB files, that only have static ctors called if a symbol
in that same file is used. (I got it to work by dlsym'ing the mangled
ctor's name, but that's not a solution.)
if you pass -module, libtool uses 'g++ -bundle', which creates Mach-O
MH_BYNDLE files, that work as dlopen() expects.
Apparently the reason there are these two types of Mach-O files is that
you can use a .dylib with a static linker as well as being loaded. I
guess this isn't a big deal when using libtool anyway.
(End Elaboration)
So, I'm set to work, and hopeful...
2004 Jun 19
2
[LLVMdev] Problems loading passes on Mac OS X
OK, seems like I've got some more looking to do.
From what I can find, the only difference with OS X and dynamic
libraries is that you can't depend on the order of calling static
constructors, but not that you can't depend on them getting called. :)
If I find that library handling in LLVM needs changes to work with OS
X, I'll send a patch.
Thanks,
-mike
On Jun 19, 2004,