A2342: Label in an OFFSET section cannot be exported

[ERROR]

Description

An external defined label is provided as offset in an OFFSET directive or a label defined in an offset is used in a DS directive.

Example
           OFFSET 1

  ID:      DS.B   1

           ALIGN 4

  COUNT:   DS.W   1

           ALIGN 4

  VALUE:   DS.W   1

  SIZE:    EQU *

           XDEF VALUE

  DataSec: SECTION

  Struct:  DS.B SIZE
  
Tips

Use other labels to specify the size of the offset and the number of space to provide.

Example
           OFFSET 1

  ID:      DS.B   1

           ALIGN 4

  COUNT:   DS.W   1

           ALIGN 4

  VALUE:   DS.W   1

  SIZE:    EQU *

  DataSec: SECTION

  Struct:  DS.B SIZE