8/16 bit

Target Family : MC9S08QE128

Listing: Memory Segments
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
    Z_RAM                    = READ_WRITE  0x0080 TO 0x00FF;
    RAM                      = READ_WRITE  0x0100 TO 0x17FF;
    RAM1                     = READ_WRITE  0x1880 TO 0x207F
 /* unbanked FLASH ROM */
    ROM = READ_ONLY 0x2080 TO 0x7FFF;
    ROM1                     = READ_ONLY   0xC000 TO 0xFFAD;
Listing: Input calc_crc.crc file
CRC
SEED = 0xfef
FILL = 0xff
FROM 0x211E TO 0x2123;
DEST = 0x21D2

To read bytes present at specified memory location go to file offset.

Listing: Input Bytes from .elf file
NO   TYPE    OFFSET SIZE VIRTADDR PHYADDR MEMSIZE FLAGS ALIGNMNT
28 - PT_LOAD D4       C5     211E       0      C5   R X       0 

D0 : 00 00 00 00  A7 FA 45 0F EF 9E     //memory range from 0x211E TO 0x2123
Listing: Program Header Before Post Linking
PROGRAM HEADER TABLE - 32 Items
Starts at:    148D1, Size of an entry:     20, Ends at:    14CD1
  NO   TYPE         OFFSET     SIZE VIRTADDR  PHYADDR  MEMSIZE  FLAGS ALIGNMNT
   0 - PT_LOAD          34        0        0        0       2C   RW          0
   1 - PT_LOAD          34        0       2D        0        9   RW          0
   2 - PT_LOAD          34        0       38        0        7   RW          0
   3 - PT_LOAD          34        0       40        0        E   RW          0
   4 - PT_LOAD          34        0       50        0        E   RW          0
   5 - PT_LOAD          34        0       60        0       17   RW          0
   6 - PT_LOAD          34        0       78        0        8   RW          0
   7 - PT_LOAD          34        0      100        0      219   RW          0
   8 - PT_LOAD          34        0     1800        0        4   RW          0
   9 - PT_LOAD          34        0     1806        0        4   RW          0
  10 - PT_LOAD          34        0     180B        0        1   RW          0
  11 - PT_LOAD          34        0     180E        0       14   RW          0
  12 - PT_LOAD          34        0     1823        0        4   RW          0
  13 - PT_LOAD          34        0     1830        0        3   RW          0
  14 - PT_LOAD          34        0     1838        0        4   RW          0
  15 - PT_LOAD          34        0     183D        0        1   RW          0
  16 - PT_LOAD          34        0     1840        0        3   RW          0
  17 - PT_LOAD          34        0     1844        0        3   RW          0
  18 - PT_LOAD          34        0     1848        0        3   RW          0
  19 - PT_LOAD          34        0     184C        0        3   RW          0
  20 - PT_LOAD          34        0     1850        0        3   RW          0
  21 - PT_LOAD          34        0     1854        0        3   RW          0
  22 - PT_LOAD          34        0     1858        0        3   RW          0
  23 - PT_LOAD          34        0     185C        0        3   RW          0
  24 - PT_LOAD          34        0     1860        0        3   RW          0
  25 - PT_LOAD          34        0     1868        0        6   RW          0
  26 - PT_LOAD          34        0     1870        0        E   RW          0
  27 - PT_LOAD          34       9E     2080        0       9E   R X         0
  28 - PT_LOAD          D4       C5     211E        0       C5   R X         0
  29 - PT_LOAD         19C       1E     21E3        0       1E   R X         0
  30 - PT_LOAD         1BC        2     FFFE        0        2   R X         0
  31 - PT_NOTE       119EC      30D

To read the checksum value go to the file offset.

Listing: Output in '.elf.crc.elf' file
NO   TYPE    OFFSET     SIZE VIRTADDR PHYADDR MEMSIZE FLAGS ALIGNMNT
32 - PT_LOAD 14CF2        2     21D2     21D2        2   R       0

14CF0: 00 00 57 74          //calculated checksum value -2 bytes
Listing: Program Header After Post Linking
PROGRAM HEADER TABLE - 33 Items
Starts at:    148D1, Size of an entry:     20, Ends at:    14CF1
  NO   TYPE         OFFSET     SIZE VIRTADDR  PHYADDR  MEMSIZE  FLAGS ALIGNMNT
   0 - PT_LOAD          34        0        0        0       2C   RW          0
   1 - PT_LOAD          34        0       2D        0        9   RW          0
   2 - PT_LOAD          34        0       38        0        7   RW          0
   3 - PT_LOAD          34        0       40        0        E   RW          0
   4 - PT_LOAD          34        0       50        0        E   RW          0
   5 - PT_LOAD          34        0       60        0       17   RW          0
   6 - PT_LOAD          34        0       78        0        8   RW          0
   7 - PT_LOAD          34        0      100        0      219   RW          0
   8 - PT_LOAD          34        0     1800        0        4   RW          0
   9 - PT_LOAD          34        0     1806        0        4   RW          0
  10 - PT_LOAD          34        0     180B        0        1   RW          0
  11 - PT_LOAD          34        0     180E        0       14   RW          0
  12 - PT_LOAD          34        0     1823        0        4   RW          0
  13 - PT_LOAD          34        0     1830        0        3   RW          0
  14 - PT_LOAD          34        0     1838        0        4   RW          0
  15 - PT_LOAD          34        0     183D        0        1   RW          0
  16 - PT_LOAD          34        0     1840        0        3   RW          0
  17 - PT_LOAD          34        0     1844        0        3   RW          0
  18 - PT_LOAD          34        0     1848        0        3   RW          0
  19 - PT_LOAD          34        0     184C        0        3   RW          0
  20 - PT_LOAD          34        0     1850        0        3   RW          0
  21 - PT_LOAD          34        0     1854        0        3   RW          0
  22 - PT_LOAD          34        0     1858        0        3   RW          0
  23 - PT_LOAD          34        0     185C        0        3   RW          0
  24 - PT_LOAD          34        0     1860        0        3   RW          0
  25 - PT_LOAD          34        0     1868        0        6   RW          0
  26 - PT_LOAD          34        0     1870        0        E   RW          0
  27 - PT_LOAD          34       9E     2080        0       9E   R X         0
  28 - PT_LOAD          D4       C5     211E        0       C5   R X         0
  29 - PT_LOAD         19C       1E     21E3        0       1E   R X         0
  30 - PT_LOAD         1BC        2     FFFE        0        2   R X         0
  31 - PT_NOTE       119EC      30D
  32 - PT_LOAD       14CF2        2     21D2     21D2        2   R           0

New segment added by the post linker or crcgen.exe utility.