Discussion:
Shared library support
(too old to reply)
Peter Holmes
2007-04-18 17:06:26 UTC
Permalink
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.

- Peter


---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Marcel Moolenaar
2007-04-18 17:25:34 UTC
Permalink
Post by Peter Holmes
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
***@mac.com
Loading...