title: How to map function symbol to address range
body: <p>What is the proper way to determine the address range for a function symbol (string)?
  I'll be working with statically-linked, non-stripped C programs on Linux.</p>
  
  <p>For example, I'd like to do something like this:</p>
  
  <pre><code>char* func_name = get_string_from_user();
  printf("start address: %p \n", get_addr_range(func_name).start);
  printf("end address: %p \n", get_addr_range(func_name).end);
  </code></pre>
  
  <p>Where the start address should be the actual address of the function as layed out currently in memory.
  I think gdb and objdump perform similar actions, so it should be possible, right?</p>
  
  <p>Thanks.</p>