Clean up ELF entry point invocation code