Rename more stuff from "overlay" to "replace".
This commit is contained in:
@@ -193,7 +193,7 @@ static void BinWriteMem (BinDesc* D, MemoryArea* M)
|
|||||||
NewAddr += M->Start;
|
NewAddr += M->Start;
|
||||||
}
|
}
|
||||||
if (DoWrite || (M->Flags & MF_FILL) != 0) {
|
if (DoWrite || (M->Flags & MF_FILL) != 0) {
|
||||||
/* Seek in "overlay" segments */
|
/* Seek in "replace" segments */
|
||||||
if (S->Flags & SF_REPLACE) {
|
if (S->Flags & SF_REPLACE) {
|
||||||
fseek (D->F, NewAddr - M->Start, SEEK_SET);
|
fseek (D->F, NewAddr - M->Start, SEEK_SET);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1797,7 +1797,7 @@ unsigned CfgProcess (void)
|
|||||||
for (I = 0; I < CollCount (&MemoryAreas); ++I) {
|
for (I = 0; I < CollCount (&MemoryAreas); ++I) {
|
||||||
unsigned J;
|
unsigned J;
|
||||||
unsigned long Addr;
|
unsigned long Addr;
|
||||||
unsigned Overlays = 0;
|
unsigned Replaces = 0;
|
||||||
|
|
||||||
/* Get the next memory area */
|
/* Get the next memory area */
|
||||||
MemoryArea* M = CollAtUnchecked (&MemoryAreas, I);
|
MemoryArea* M = CollAtUnchecked (&MemoryAreas, I);
|
||||||
@@ -1851,23 +1851,23 @@ unsigned CfgProcess (void)
|
|||||||
/* Remember the start address before handling this segment */
|
/* Remember the start address before handling this segment */
|
||||||
unsigned long StartAddr = Addr;
|
unsigned long StartAddr = Addr;
|
||||||
|
|
||||||
/* Take note of overlayed segments and make sure there are no other
|
/* Take note of "replace" segments and make sure there are no other
|
||||||
** segment types following them in current memory region.
|
** segment types following them in current memory region.
|
||||||
*/
|
*/
|
||||||
if (S->Flags & SF_REPLACE) {
|
if (S->Flags & SF_REPLACE) {
|
||||||
if (S->Flags & (SF_OFFSET | SF_START)) {
|
if (S->Flags & (SF_OFFSET | SF_START)) {
|
||||||
++Overlays;
|
++Replaces;
|
||||||
} else {
|
} else {
|
||||||
CfgError (GetSourcePos (M->LI),
|
CfgError (GetSourcePos (M->LI),
|
||||||
"Segment `%s' of type `overlay' requires either"
|
"Segment `%s' of type `replace' requires either"
|
||||||
" `Start' or `Offset' attribute to be specified",
|
" `Start' or `Offset' attribute to be specified",
|
||||||
GetString (S->Name));
|
GetString (S->Name));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Overlays > 0) {
|
if (Replaces > 0) {
|
||||||
CfgError (GetSourcePos (M->LI),
|
CfgError (GetSourcePos (M->LI),
|
||||||
"Segment `%s' is preceded by at least one segment"
|
"Segment `%s' is preceded by at least one segment"
|
||||||
" of type `overlay'",
|
" of type `replace'",
|
||||||
GetString (S->Name));
|
GetString (S->Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user