
Dear ffmm rrcc,
In message dbab92f10905062254s3bea0882y7d4ec546c4ddb0dc@mail.gmail.com you wrote:
Hi all:
I have write a standalone application on U-Boot,it works well.but i have to get the entry point address follow this article:
http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork
I use -Ttext option for ${CROSS_COMPILE}ld to set the text section base address,and -e option to set the entry point function,is there any way to let the compiler and linker put the entry point function on the text section base address?
Change your code so that your entry point function is the first or only function in a source file (and thus in the resulting object file), and change the linker script so that this object gets linked first, starting at the text section base address.
Best regards,
Wolfgang Denk