ATI CTM Guide v. 1.01
© 2006 Advanced Micro Devices, Inc.
46 Executable Files
4.1.3
Program Code Sections
The program executable code is contained within a single .text section of the ELF file with a program header element
of type PT_LOAD:
4.1.4
Program Loading
A binary object to be loaded for execution contains information in addition to the instruction code found in the .text
section of its binary. This information is encoded in seven notes encapsulated in one or more sections of type
SHT_NOTE with program header elements of type PT_NOTE. This information is used to ensure the validity of the
execution environment in CTM with respect to the program being loaded.
The notes are summarized in the following table, and described in detail in the subsections below:
Program Information Note
The Program Information Note is summarized in the following tables. If the object file does not contain a program
information note, the object is ill conditioned and will fail to load:
The DPP Program Information structure (dpp_proginfo) found in the Program Information Note is:
Name
Type
Flags
Section Contents
text
SHT_PROGBITS
SHF_ALLOC
SHF_EXECINSTR
The executable instructions of a program.
Note
Description
Program Information
Ancillary information used by the loader to set up program.
Inputs
Which inputs are referenced in the program.
Outputs
Which outputs are referenced in the program.
Conditional Output
Whether a conditional output value is written.
Float32 Constants
Which FLOAT32 constants are referenced in the program.
Int32 Constants
Which INT32 constants are referenced in the program.
Early Program Exit
Whether the program contains an early exit command.
Field
Size in Bytes
Value
namesz
4
8
descsz
4
sizeof(dpp_proginfo)
type
4
ELF_NOTE_ATI_PROGINFO (current value is 1)
name
8
ELF_NOTE_ATI (current value is "ATI DPP")
desc
sizeof(dpp_proginfo)
The DPP Program Information structure (see below).
Field
Type
Value
Description
Reserved
Elf32_Word
0x00000001
Reserved
FG_DEPTH_SRC
Elf32_Word
per-program
A 1 in bit 0 specifies conditional value is exported.
US_CONFIG
Elf32_Word
per-program
A 1 in bit 0 specifies that output writes are uncached.
US_PIXSIZE
Elf32_Word
per-program
Largest register used in the program
US_FC_CTRL
Elf32_Word
per-program
A 1 in bit 31 specifies full flow control functionality
Summary of Contents for ATI CTM
Page 1: ...ATI CTM Guide Technical Reference Manual Version 1 01...
Page 6: ...ATI CTM Guide v 1 01 2006 Advanced Micro Devices Inc 2 Related Documents...
Page 48: ...ATI CTM Guide v 1 01 2006 Advanced Micro Devices Inc 44 Errata...
Page 54: ...ATI CTM Guide v 1 01 2006 Advanced Micro Devices Inc 50 Executable Files...