X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCglue.c;h=1a4913767ad331b6a58c8b801cf55487f272b63d;hb=238e1b53dc1ac88bd559c93bd7f355d0887d39e1;hp=fbf94e769ef963840aa333b199078c7000c011be;hpb=e5e04068f34cc1bbc54baba8c96608c91a2e401f;p=fw%2Fsdcc diff --git a/src/SDCCglue.c b/src/SDCCglue.c index fbf94e76..1a491376 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -294,7 +294,7 @@ emitRegularMap (memmap * map, bool addPublics, bool arFlag) else DCL_PTR_CONST (newSym->type) = 1; SPEC_STAT(newSym->etype)=1; - resolveIvalSym(newSym->ival); + resolveIvalSym(newSym->ival, newSym->type); // add it to the "XINIT (CODE)" segment addSet(&xinit->syms, newSym); @@ -1243,7 +1243,7 @@ emitStaticSeg (memmap * map, FILE * out) { fprintf (out, "%s:\n", sym->rname); noAlloc++; - resolveIvalSym (sym->ival); + resolveIvalSym (sym->ival, sym->type); printIval (sym, sym->type, sym->ival, out); noAlloc--; /* if sym is a simple string and sym->ival is a string,