dynamic linker problem
dynamic linker problem
- Subject: dynamic linker problem
- From: Rob Ballantyne <email@hidden>
- Date: Sun, 12 Jun 2005 13:13:49 -0700
Hello All,
The short question is: how do I force the
LC_LOAD_DYLINKER load command into a Mach-O
executable?
The longer version is as follows. I am
writing a pure assembly routine (no C main
function, no crt0.o) that I want to call
dynamically linked routines (printf!).
You may wonder why, of course!!! I'm just
trying to understand the user land process
startup with dylinker.
The Mach-O Runtine Architecture document
is clear about the structure of the lazy symbol
stubs required to link to dynamicly loaded code.
The Csu-46 package (if someone could tell me
why it's called that I'd appreciate it!!!, oddest
named thing I've seen) has the standard startup
and runtime stuff for C (start.s, dyld.c, crt.c). I
think I've got it BUT there is no
LD_LOAD_DYLINKER command in the executable produced
even though I've specified -dynamic everywhere.
Any advice would be greatly appreciated!!
Rob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden