[cc65] Accessing linker symbols from C?

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2011-11-17 20:01:11
How do I, from C code, access symbols from the linker?  Let's say I create a buffer in memory as a segment and want to fill it with a document.  The problem is that when I try to read the starting address of a defined memory segment (i.e. __BSS_LOAD__), I get a zero value.  I need the starting address and size of the segment.  BTW, I know to remove the initial '_' and have been defining the label as extern in a header.
--
Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Nov 17 20:01:21 2011

This archive was generated by hypermail 2.1.8 : 2011-11-17 20:01:24 CET