Added info about the new OPTIONAL segment attribute.
git-svn-id: svn://svn.cc65.org/cc65/trunk@2166 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
cfb622f738
commit
8b279cf126
1 changed files with 12 additions and 6 deletions
|
@ -373,10 +373,10 @@ segment, where this attribute is true, the linker will export three symbols.
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
__NAME_LOAD__ This is set to the address where the
|
__NAME_LOAD__ This is set to the address where the
|
||||||
segment is loaded.
|
segment is loaded.
|
||||||
__NAME_RUN__ This is set to the run address of the
|
__NAME_RUN__ This is set to the run address of the
|
||||||
segment. We will cover run addresses
|
segment. We will cover run addresses
|
||||||
later.
|
later.
|
||||||
__NAME_SIZE__ This is set to the segment size.
|
__NAME_SIZE__ This is set to the segment size.
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
|
@ -486,10 +486,10 @@ external symbols for the data segment that may be accessed from your code:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
__DATA_LOAD__ This is set to the address where the segment
|
__DATA_LOAD__ This is set to the address where the segment
|
||||||
is loaded, in this case, it is an address in
|
is loaded, in this case, it is an address in
|
||||||
ROM2.
|
ROM2.
|
||||||
__DATA_RUN__ This is set to the run address of the segment,
|
__DATA_RUN__ This is set to the run address of the segment,
|
||||||
in this case, it is an address in RAM2.
|
in this case, it is an address in RAM2.
|
||||||
__DATA_SIZE__ This is set to the segment size.
|
__DATA_SIZE__ This is set to the segment size.
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
|
@ -594,6 +594,12 @@ or (for the segment definitions from above)
|
||||||
}
|
}
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
|
To suppress the warning, the linker issues if it encounters a segment that is
|
||||||
|
not found in any of the input files, use "<tt/optional=yes/" as additional
|
||||||
|
segment attribute. Be careful when using this attribute, because a missing
|
||||||
|
segment may be a sign of a problem, and if you're suppressing the warning,
|
||||||
|
there is no one left to tell you about it.
|
||||||
|
|
||||||
File names may be empty, data from segments assigned to a memory area with
|
File names may be empty, data from segments assigned to a memory area with
|
||||||
an empty file name is discarded. This is useful, if the a memory area has
|
an empty file name is discarded. This is useful, if the a memory area has
|
||||||
segments assigned that are empty (for example because they are of type
|
segments assigned that are empty (for example because they are of type
|
||||||
|
|
Loading…
Add table
Reference in a new issue