title: Accessing particular section in ELF
body: <p>We have a program in which a section is added named .proghead.</p>
  
  <p>I can read elf .proghead section data by using following command,</p>
  
  <pre><code>$ readelf -x .proghead  elf-binary-file
  
  Hex dump of section '.proghead':
    0x0058b960 00112233 00000000 00010000 00000000 .."3............
    0x0058b970 15200704 00000000 00016904 00000000 . ........i.....
  </code></pre>
  
  <p>Now I have to access this section using a C/C++ program.</p>
  
  <p>Can someone please help me in writing C/C++ code to read particular section in elf binary ?</p>
  
  <p>Any help is highly appreciated .</p>