For 64-bit, use first 4 bytes of addr in sections for offset
Better way of finding __text offset as suggested by dirk