MSC100ABIRM Motorola / Freescale Semiconductor, MSC100ABIRM Datasheet - Page 56

no-image

MSC100ABIRM

Manufacturer Part Number
MSC100ABIRM
Description
SC100 Application Binary Interface Reference Manual
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
SC100 ELF Object File Format
Object file comments generated by the user through an assembler directive are placed in the note section.
This is typically for users to identify their object code. The same string termination and padding
restrictions apply to object file comments as apply to vendor identification notes. The field contains a
user-specified comment. A null comment ( \0 ) is not a valid comment.
The object file comment format is shown in Figure 4-3.
4.3.6 Program Headers
Program headers are used to build an executable image in memory and are only useful for executable files.
While section headers may or may not be included in executable files, program headers are always present
in executable files. See Example 4-8 for a sample program header.
Example 4-8. Program Header
Refer to the following list for a description of program header members.
4-24
p_type—describes the type of program header. Only PT_LOAD and PT_NOTE are recognized as
types.
p_offset—offset from beginning of file to first byte of segment.
p_vaddr—virtual address in memory of the first byte of the segment.
p_paddr—physical address in memory of the first byte of the segment.
p_filesz—gives the number of bytes in segment’s memory image. (May be zero.)
p_memsz—gives the number of bytes in segment’s memory image. (May be zero.)
p_flags—gives flags relevant to the segment. Defined flags are PF_R,PF_W,PF_X.
p_align—segment alignment requirements in file and memory.
typedef struct {
} Elf32_Phdr;
Elf32_Word p_type;
Elf32_Off
Elf32_Addr p_vaddr;
Elf32_Addr p_paddr;
Elf32_Word p_filesz;
Elf32_Word p_memsz;
Elf32_Word p_flags;
Elf32_Word p_align;
Figure 4-3. User (Application-Specific) Note Format
namesz
descsz
name
p_offset;
type
Preliminary (April 2000)
‘c’
0
1
‘e’
0
‘o’
1
‘n’
‘t’
‘m’
2
‘m’
\0
3
SC100 Application Binary Interface

Related parts for MSC100ABIRM