MSC100ABIRM Motorola / Freescale Semiconductor, MSC100ABIRM Datasheet - Page 34

no-image

MSC100ABIRM

Manufacturer Part Number
MSC100ABIRM
Description
SC100 Application Binary Interface Reference Manual
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
SC100 ELF Object File Format
4.3.1 The ELF Header
The ELF header structure is shown in Example 4-1. This structure is defined by the ELF spec, and
definitions for each field can be found in the ELF spec. Example 4-2 shows SC140-specific code.
Example 4-1. ELF Header Structure
Example 4-2. SC140 Specifics
e_ident[EI_CLASS] = ELFCLASS32
e_ident[EI_DATA] = ELFDATA2LSB (Little-endian memory mode)
e_ident[EI_DATA] = ELFDATA2MSB (Big-endian memory mode)
e_machine: 0x3a (EM_STARCORE)
4-2
Elf Header
Optional Program Hdr
Sections
...
Section Header Table
typedef struct {
} Elf32_Ehdr;
Linking View
unsigned char e_ident[EI_NIDENT];
Elf32_Half e_type;
Elf32_Half e_machine;
Elf32_Word e_version;
Elf32_Addr e_entry;
Elf32_Off
Elf32_Off
Elf32_Word e_flags;
Elf32_Half e_ehsize;
Elf32_Half e_phentsize;
Elf32_Half e_phnum;
Elf32_Half e_shentsize;
Elf32_Half e_shnum;
Elf32_Half e_shstrndx;
Figure 4-1. Object File Format
e_phoff;
e_shoff;
Preliminary (April 2000)
Elf Header
Program Header
Segments
...
Opt Section Hdr Table
Execution View
SC100 Application Binary Interface

Related parts for MSC100ABIRM