Developer's Topics
Chapter 10, Mapfile option

Size-Symbol declarations

Size-Symbol declarations

Size-symbol declarations let you define a new global-absolute symbol that represents the size, in bytes, of the specified segment. This symbol can be referenced in your object files. A size-symbol declaration has the following syntax:

segment_name @ symbol_name

symbol_name can be any valid C identifier, although the ld command does not check the syntax of the symbol_name.