title: Position-independent executables and ptrace
body: <p>I would like to ptrace a PIE on Linux and e.g. break at a given instruction address. From disassembly, I have the relative address of the instruction - how can I find out the location the executable was loaded at so I can get the absolute address?</p>
  
  <p>GDB is able to trace PIEs - how does it deal with this? </p>