Added a "fillval" attribute to the segment definition. When given, it
overrides the value from the memory area for all space that lies within the segment itself. git-svn-id: svn://svn.cc65.org/cc65/trunk@5823 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -728,8 +728,11 @@ into a memory area that is marked as readonly.
|
||||
Unused memory in a memory area may be filled. Use the "<tt/fill = yes/"
|
||||
attribute to request this. The default value to fill unused space is zero. If
|
||||
you don't like this, you may specify a byte value that is used to fill these
|
||||
areas with the "<tt/fillval/" attribute. This value is also used to fill unfilled
|
||||
areas generated by the assemblers <tt/.ALIGN/ and <tt/.RES/ directives.
|
||||
areas with the "<tt/fillval/" attribute. If there is no "<tt/fillval/"
|
||||
attribute for the segment, the "<tt/fillval/" attribute of the memory area (or
|
||||
its default) is used instead. This means that the value may also be used to
|
||||
fill unfilled areas generated by the assemblers <tt/.ALIGN/ and <tt/.RES/
|
||||
directives.
|
||||
|
||||
The symbol <tt/%S/ may be used to access the default start address (that is,
|
||||
the one defined in the <ref id="FEATURES" name="FEATURES"> section, or the
|
||||
@@ -804,6 +807,13 @@ segment in the load memory area, in case different load and run areas have
|
||||
been specified. There are no special attributes to set start or offset for
|
||||
just the load memory area.
|
||||
|
||||
A "<tt/fillval/" attribute may not only be specified for a memory area, but
|
||||
also for a segment. The value must be an integer between 0 and 255. It is used
|
||||
as fill value for space reserved by the assemblers <tt/.ALIGN/ and <tt/.RES/
|
||||
commands. It is also used as fill value for space between sections (part of a
|
||||
segment that comes from one object file) caused by alignment, but not for
|
||||
space that preceeds the first section.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user