Dear Peter Tyser, In message <1284149249.26713.2926.ca...@petert> you wrote: > > > Sorry, I'm confused. What exactly do you want me to do? Since you > > applied Peter's patch, the problem has gone away for me. > > However, I think there's still the issue that if there are multiple > functions in a standalone application there's no guarantee the entry > point function will be at the base of the image. eg if the app were:
That's my understanding as well. > My last question on the issue was: > It looks like the -fno-toplevel-reorder flag is only available in gcc >= > 4.2 (http://gcc.gnu.org/gcc-4.2/changes.html released May 2007). So, do > we add support to U-Boot to conditionally check for the gcc version like > Linux to know when to use -fno-toplevel-reorder? Or do we use a linker > script that would support more versions of gcc at the cost of more > complexity? > > I never heard back about the preferred method. I'd personally lean > towards checking for compiler version and using the gcc version check + > -fno-toplevel-reorder. Given the fact that GCC 4.2 is already pretty old I also tend to add a gcc version check with -fno-toplevel-reorder instead of increasing the complexity of the linker scripts. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de You can observe a lot just by watching. - Yogi Berra _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot