Besides
sh_type == SHT_RELA
, there also exists SHT_REL
, which would have section name .text.rel
(not present in this object file).Those represent the same
struct
, but without the addend, e.g.:typedef struct {
Elf64_Addr r_offset;
Elf64_Xword r_info;
} Elf64_Rela;
The ELF standard says that in many cases the both can be used, and it is just a matter of convenience.