2010-05-20 04:36 AM
Executing binaries
2011-05-17 04:51 AM
ELF would be the way to go, perhaps overkill, but the tools generate it and it is well documented.
You should probably look at the linker (and the directive file) rather than the compiler. The objects emitted by the compiler are relocatable ELF objects. You might look at the --emit-relocs option to keep them.2011-05-17 04:51 AM
-fpic does work, but you will have to handle the GOT - been a while and i was only executing small amounts of code.
also maybe of interest: http://nuttx.sourceforge.net/NuttXNxFlat.html Cheers Spen2011-05-17 04:51 AM
Helpful - thanks!
Chris.