This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change the entrypoint by binary file data in the C program

Hello.

There is an executable file built by setting the address of the entry point (RO_Base) to 0x00000000 with Keil's linker setting.

I converted this executable file into plain binary format data using "fromelf - bin" command.

This binary data is loaded into the memory of nRF 52 without using the debugger.

Although installing in memory 0x00000000 will work without problems, setting it to 0x00010000 does not work well.

When binary data built by setting 0x00010000 at entry point is installed in memory 0x00010000, it works.

Is there a way to rewrite the binary data created with entry point 0x00000000 to 0x00010000 in the C program?

thanks.

Related