1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-12 12:29:32 +00:00

Symbols in ZP segments will use '.exportzp' instead of '.export' if exported.

This commit is contained in:
acqn 2020-01-21 10:50:12 +08:00 committed by Oliver Schmidt
parent e58c84acf7
commit 262c4235df

View File

@ -37,6 +37,7 @@
#include <time.h>
/* common */
#include "addrsize.h"
#include "debugflag.h"
#include "segnames.h"
#include "version.h"
@ -275,6 +276,17 @@ static void Parse (void)
}
Entry->V.BssName = xstrdup (bssName);
/* This is to make the automatical zeropage setting of the symbol
** work right.
*/
g_usebss ();
}
}
/* Make the symbol zeropage according to the segment address size */
if ((Entry->Flags & SC_EXTERN) != 0) {
if (GetSegAddrSize (GetSegName (CS->CurDSeg)) == ADDR_SIZE_ZP) {
Entry->Flags |= SC_ZEROPAGE;
/* Check for enum forward declaration.
** Warn about it when extensions are not allowed.
*/