Made the ld65 configure file's segment offset attribute accept zero as a value.
Expressions are allowed as values. Therefore, zero might be set explicitly by some conditions.
This commit is contained in:
@@ -732,7 +732,7 @@ static void ParseSegments (void)
|
|||||||
|
|
||||||
case CFGTOK_OFFSET:
|
case CFGTOK_OFFSET:
|
||||||
FlagAttr (&S->Attr, SA_OFFSET, "OFFSET");
|
FlagAttr (&S->Attr, SA_OFFSET, "OFFSET");
|
||||||
S->Addr = CfgCheckedConstExpr (1, 0x1000000);
|
S->Addr = CfgCheckedConstExpr (0, 0x1000000);
|
||||||
S->Flags |= SF_OFFSET;
|
S->Flags |= SF_OFFSET;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user