From 5e8252fa3601fac7489d7d39e18b87e9fb54f1c1 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 12 Nov 2010 14:17:35 +0000 Subject: [PATCH] Reworked and improved the SYMBOLS section. The old syntax (using symbol = value) is now gone, attributes are used instead. The SYMBOLS section does now support imports, so the linker config can be used to force symbols (and therefore module) imports. Evaluation of start address and size for memory areas has been delayed even further, so it is now possible to use the values from one memory area in the definition of the next one. git-svn-id: svn://svn.cc65.org/cc65/trunk@4851 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/ld65.sgml | 47 ++- src/ld65/cfg/apple2-dos33.cfg | 4 +- src/ld65/cfg/apple2-loader.cfg | 2 +- src/ld65/cfg/apple2-reboot.cfg | 2 +- src/ld65/cfg/apple2-system.cfg | 2 +- src/ld65/cfg/apple2.cfg | 4 +- src/ld65/cfg/apple2enh-dos33.cfg | 4 +- src/ld65/cfg/apple2enh-loader.cfg | 2 +- src/ld65/cfg/apple2enh-reboot.cfg | 2 +- src/ld65/cfg/apple2enh-system.cfg | 2 +- src/ld65/cfg/apple2enh.cfg | 4 +- src/ld65/cfg/atari.cfg | 4 +- src/ld65/cfg/atmos.cfg | 2 +- src/ld65/cfg/bbc.cfg | 2 +- src/ld65/cfg/c128.cfg | 4 +- src/ld65/cfg/c16.cfg | 2 +- src/ld65/cfg/c64.cfg | 2 +- src/ld65/cfg/cbm510.cfg | 2 +- src/ld65/cfg/cbm610.cfg | 2 +- src/ld65/cfg/geos.cfg | 2 +- src/ld65/cfg/lunix.cfg | 6 +- src/ld65/cfg/lynx.cfg | 2 +- src/ld65/cfg/nes.cfg | 2 +- src/ld65/cfg/none.cfg | 2 +- src/ld65/cfg/pet.cfg | 2 +- src/ld65/cfg/plus4.cfg | 2 +- src/ld65/cfg/supervision-128k.cfg | 2 +- src/ld65/cfg/supervision-16k.cfg | 2 +- src/ld65/cfg/supervision-64k.cfg | 2 +- src/ld65/cfg/vic20-32k.cfg | 2 +- src/ld65/cfg/vic20.cfg | 2 +- src/ld65/cfgexpr.c | 1 + src/ld65/config.c | 523 ++++++++++++++++-------------- src/ld65/config.h | 2 + src/ld65/exports.c | 104 ++++-- src/ld65/exports.h | 5 +- src/ld65/objdata.c | 8 +- src/ld65/scanner.h | 14 +- 38 files changed, 453 insertions(+), 327 deletions(-) diff --git a/doc/ld65.sgml b/doc/ld65.sgml index d37beced7..2c2b2d599 100644 --- a/doc/ld65.sgml +++ b/doc/ld65.sgml @@ -832,8 +832,8 @@ The necessary o65 attributes are defined in a special section labeled The , +section, the attribute list is empty. The second supported format, +, has several attributes that may be defined here. @@ -942,12 +942,41 @@ mean, that the The SYMBOLS section