summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2019-11-10 20:13:59 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2019-11-10 20:13:59 +0100
commit40ce43b7aec0aaf96770412d041ede6bf0f0573d (patch)
treec168f85be3bba09612ba2ebceb8d457e101b0259
parenta13561bc9a51f646cabb32edf965af66dc769d56 (diff)
slabeldef is not needed for C strings in GAS formatHEADmaster
-rw-r--r--src/SDCCglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SDCCglue.c b/src/SDCCglue.c
index d382a4d..7338b44 100644
--- a/src/SDCCglue.c
+++ b/src/SDCCglue.c
@@ -2007,7 +2007,7 @@ emitStaticSeg (memmap *map, struct dbuf_s *oBuf)
else
dbuf_tprintf(&code->oBuf, "\t!area\n", options.const_seg);
- if (IS_STATIC (sym->etype))
+ if (IS_STATIC (sym->etype) && !options.gasOutput)
dbuf_tprintf (oBuf, "!slabeldef\n", sym->rname);
else
dbuf_tprintf (oBuf, "!labeldef\n", sym->rname);