From: Steve Judd (sjudd_at_ffd2.com)
Date: 2003-04-29 18:44:17
Marko,
You might take a look at the code relocation function in Jammon. For the
most part it's pretty easy to relocate ML code. As I recall, the main
issue is when there's data embedded in the code. The way I got around
that was to put all the data at the end of the code, then specify three
addresses to the code relocater: code start, code end, data end.
The Sirius linker also produces relocatable files; the addresses are
resolved at link time. The table is pretty simple, as I recall, just the
location in the code and the relative address (maybe that's even just
stored in the code). Anyways, I think a relocater is probably simplest,
and the Jammon one would probably be easy to extract.
cu,
-S
Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.