Instrumentation setup and Read-only text segment implementation