The ddpi_elf_set_ppa_addrs operation assigns the
PPA addresses to a given ELF object.
Description
The ddpi_elf_set_ppa_addrs operation
assigns all four fields each time and overwrites previous values. The values
are copied into the Ddpi_Storage object. You can deallocate
copies of the list.
Prototype
int ddpi_elf_set_ppa_addrs(
Ddpi_Elf elf,
Dwarf_Addr ppa2_addr,
Dwarf_Addr* ppa1_addrs,
Dwarf_Addr* func_addrs,
int ppa1_count,
Ddpi_Error* error);
Parameters
- elf
- Input. This accepts a Ddpi_Elf object.
- ppa2_addr
- Input. This accepts a PPA2 address.
- ppa1_addrs
- Input. This accepts a PPA1 address list. There must be ppa1_count members
in this list.
- func_addrs
- Input. This accepts a function address list. There must be ppa1_count members
in this list.
- ppa1_count
- Input. This accepts the number of PPA1 addresses.
- error
- See The libddpi error parameter.
Return values
- DW_DLV_OK
- Returned upon successful assignment of the PPA addresses.
- DW_DLV_NO_ENTRY
- Never returned.
- DW_DLV_ERROR
- This value is returned if:
- elf is NULL or corrupted.
- The Ddpi_Access or Ddpi_Info object
associated with elf is NULL.