ddpi_elf_set_reloc_info operation

The ddpi_elf_set_reloc_info operation adds a relocation information that relocates a symbol found in .symtab of the elf image. This API should be called once for each relocation entries found in .symtab of the Ddpi_Elf object.

Prototype

int ddpi_elf_set_reloc_info (
  Ddpi_Elf             elf,
  char*                symname,
  Dwarf_Addr           relocaddr,
  Ddpi_Error*          error);          

Parameters

elf
Input. This accepts a Ddpi_Elf object.
symname
Input. This accepts the name of symbol in .symtab.
relocaddr
Input. This accepts the real address of the symbol.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned upon successful insertion of the relocation information.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • The given Ddpi_Elf, or its associated Ddpi_Access and Ddpi_Info is NULL or invalid.