From: Daniel W. <dan...@gm...> - 2014-07-11 05:04:40
|
If I have a Elf64_Rela and I call ELF64_R_SYM on its r_info field, what is the meaning of the number that I get back? I'm getting numbers too large to be an index into a symbol table. Daniel Elf64_Rela const rela = ...; // from elftoolchain/common/elfdefinitions.h: // typedef struct { // Elf64_Addr r_offset; /* location to apply relocation to */ // Elf64_Xword r_info; /* type+section for relocation */ // Elf64_Sxword r_addend; /* constant addend */ // } Elf64_Rela; int const sym = ELF64_R_SYM(rela.r_info); |