slabeldef is not needed for C strings in GAS format

This commit is contained in:
Xavi Del Campo 2019-11-10 20:13:59 +01:00
parent a13561bc9a
commit 40ce43b7ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);