mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1888 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d4b73bc0ef
commit
4d892a7993
@ -738,10 +738,11 @@ static void ParseSegments (void)
|
|||||||
S->Align = 0;
|
S->Align = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the segment is marked as BSS style, check that there's no
|
/* If the segment is marked as BSS style, and if the segment exists
|
||||||
* initialized data in the segment.
|
* in any of the object file, check that there's no initialized data
|
||||||
|
* in the segment.
|
||||||
*/
|
*/
|
||||||
if ((S->Flags & SF_BSS) != 0 && !IsBSSType (S->Seg)) {
|
if ((S->Flags & SF_BSS) != 0 && S->Seg != 0 && !IsBSSType (S->Seg)) {
|
||||||
Warning ("%s(%u): Segment with type `bss' contains initialized data",
|
Warning ("%s(%u): Segment with type `bss' contains initialized data",
|
||||||
CfgGetName (), CfgErrorLine);
|
CfgGetName (), CfgErrorLine);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user