title: Get address of system function manually?
body: <p>How do I obtain the address that GDB gives when I do "print system"? </p>
  
  <p>Supposedly, if I start the program and then immediately pause it, then look in /proc/$pid/maps and get the base address of the library. Then I need to find the offset of system() in libc.so.6 and add these two together. However, when I try this in practice, I end up with an address different than the one gdb gives.</p>
  
  <p>What's the best way to obtain system() address?</p>
  
  <p>Please note that I'm trying to obtain address of another program, not the one that I compiled myself.</p>