mirror of
https://github.com/cc65/cc65.git
synced 2025-01-15 22:30:04 +00:00
Symbols in ZP segments will use '.exportzp' instead of '.export' if exported.
This commit is contained in:
parent
e58c84acf7
commit
262c4235df
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user