Shared library support
Marcel Moolenaar
xcllnt at mac.com
Wed Apr 18 17:27:02 UTC 2007
On Apr 18, 2007, at 10:06 AM, Peter Holmes wrote:
> I am trying to implement shared library support for a new
> architecture. Where can I start looking . Can someone point out the
> architecture dependent pieces.
Roughly speaking:
Start with the runtime specification for that architecture. In
particular,
look at the relocations designed for shared linking. Those
relocations need
to be supported by both the toolchain (gcc, as and ld) and the runtime
linker (rtld). Assuming that the toolchain already supports shared
linking,
most of the work will be in rtld-elf.
After the basics work, look at TLS (more relocations) and gdb. You
may need
to review threading support...
HTH,
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-hackers
mailing list