]> git.sur5r.net Git - cc65/commit - src/ld65/exports.c
Separate processing the linker config file into two phases: The config file is
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 8 Nov 2010 21:52:24 +0000 (21:52 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 8 Nov 2010 21:52:24 +0000 (21:52 +0000)
commitda792b3fd0955983f0a663f002353b0636831837
tree53f66e4c17b415c2adf9ff46f13836a14c708789
parent6c0a9c04382dceb02f8a69b401a0e5ecc920c206
Separate processing the linker config file into two phases: The config file is
read when the -t or -C switch is encountered and parts of it are processed.
The remaining parts are processed when all object files and libraries have
been read. To make this work, the expression evaluation in cfgexpr has been
rewritten to generate true expression trees. This means that expressions in
the linker config may use exports from the object files.

Separation of config file processing is the base for several enhancements, for
example forced imports by linker config.

This code needs more work and is only very, very, very roughly tested.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4840 b7a2c559-68d2-44c3-8de9-860c34a00d81
21 files changed:
src/ar65/library.c
src/common/exprdefs.h
src/common/libdefs.h
src/ld65/bin.c
src/ld65/cfgexpr.c
src/ld65/cfgexpr.h
src/ld65/config.c
src/ld65/config.h
src/ld65/exports.c
src/ld65/exports.h
src/ld65/expr.c
src/ld65/expr.h
src/ld65/library.c
src/ld65/main.c
src/ld65/make/gcc.mak
src/ld65/make/watcom.mak
src/ld65/memarea.c [new file with mode: 0644]
src/ld65/memarea.h [new file with mode: 0644]
src/ld65/o65.c
src/ld65/segments.c
src/ld65/segments.h