On Fri, Jun 01, 2012 at 03:29:08PM -0500, Payton Byrd wrote: > Is there a way to force the shared library code imported by the Linker to > reside in a specific segment? I don't want it in "CODE". Apart from recompiling: No. > It would also be good to be able to specify the segment by function. There is no automatic solution for this one. > For example, if I have an overlay that uses strncmp, but the main program > doesn't, it would be nice to be able to tell the linker to link strncmp to > the overlay and not to the main program. That is possible with an intermediate step. Use the linker to create your main program. Use some perl magic to retrieve all identifiers from the map file and generate an asm file with "name := value" pairs. Then assemble and link this object file to the overlays. As a result, the overlays will use functions in the main program, if they are already there, and have their own copies of everything else. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Jun 2 22:20:04 2012
This archive was generated by hypermail 2.1.8 : 2012-06-02 22:20:08 CEST