title: How to get the strings of shstrtab?
body: <p>I am writing a simplified version of the Linux <code>readelf</code> command.</p>
  <p>I want to print section information, so I need the names of the sections. In the <code>Elf64_Shdr</code> struct, the <code>sh_name</code> variable only points me to an index in the <code>shstrtab</code>. But this does not seem to be an index in the shstrtab header. It is an index into its associated data.</p>
  <p>I am wondering how to get there, since the ELF header only points me to the <code>shstrtab</code> section header, but not to its associated data. From what I can see in the hex dump of the file, the structure of the file is as follows:</p>
  <pre><code>ELF HEADER 
  phdr1
  phdr2
  segment1
  segment2
  shstrtab strings (i want this address, to make use of the sh_name indices)
  shdr1
  shdr2
  shdr3 (this is the shstrtab section)
  </code></pre>
  <p>Am I thinking this wrong?
  Can anybody please guide me in getting to the section names?</p>