[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Shareable/loadable libraries: a preliminary document
Hi,
Nice work!
It still needs some "clean up" from a native english speaking person,
as there are some parts which aren't very clearly formulated. For
example the paragraphe starting with: "The only advantage of static
linking is ...".
I think there are some people here who can do this job...
I don't know much about dynamic linking and how it's done on other
systems, nevertheless here are my remarks:
What about dependencies? Is it allowed to have a dynamic library to be
dependent on other dynamic libraries?
If yes, I think we need also a well defined library format containing
this information.
Dynamic libraries have to be position independent. (i.e. can't have
their own "relocation table".)
DATA and BSS segment of the library have to be directly after the TEXT
segment, and the linker has to align the BSS and DATA segment onto a
multiple of the MMU page size. The compiler also needs to know the page
size to generate proper access to DATA and BSS segment. (Perhaps GCC
does this already?)
Regards
Philipp