comparison lwlink/lwlink.h @ 315:fcd103148aa6

Add ability to load sections downward instead of upward Add "section ... high ..." statement to link scripts to allow a section to be placed based on its end address instead of its start address. All sections listed after such a statement are treated as growing downward until the next section statement specifying a load address.
author William Astle <lost@l-w.ca>
date Wed, 27 Nov 2013 16:01:26 -0700
parents 7de7b14ebaee
children 55c1f9a321e9
comparison
equal deleted inserted replaced
310:86eb8814a05c 315:fcd103148aa6
154 { 154 {
155 char *sectname; // name of section, NULL for wildcard 155 char *sectname; // name of section, NULL for wildcard
156 int loadat; // address to load at (or -1) 156 int loadat; // address to load at (or -1)
157 int noflags; // flags to NOT have 157 int noflags; // flags to NOT have
158 int yesflags; // flags to HAVE 158 int yesflags; // flags to HAVE
159 int growsdown; // sections are placed descending in memory
159 }; 160 };
160 161
161 typedef struct 162 typedef struct
162 { 163 {
163 int nlines; // number of lines in the script 164 int nlines; // number of lines in the script