0
$\begingroup$

below is two pictures in regards to Executable and Linkable Format(ELF): enter image description here

enter image description here

My questions is:

we know that Relocatable Object Files in ELF format are binary code(0s and 1s), so is Elf64_Symbol struct just used to represent its content more naturely and enhance readability without saying sth like in .symtab 0-31 bits(int is 32 bit) is string table offset, the following 32-39 bit(size of char) is .... etc, so Elf64_Symbol struct is mainly used for readability?and we don't actually need it in coding. is my understanding correct?

$\endgroup$
2
  • $\begingroup$ The struct is a way to specify the format of a symbol table entry. You have no obligation to use C to read ELFs. $\endgroup$ – Yuval Filmus Aug 28 '20 at 6:18
  • $\begingroup$ Multiply posted at stackoverflow.com/q/63625657/340790 . $\endgroup$ – JdeBP Sep 10 '20 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.