On 05/20/2013 01:50 PM, Padgett Don-B43265 wrote: > I was able to track down the specs file you mentioned and get the hello > world example to work. Thank you!
I had been meaning to mention this. Is there some way you could include the AEM specs file in the next toolchain binaries release, either by using a newer snapshot of the Newlib repository or back-porting the file to the version (last release?) currently used? Thanks, Christopher > -----Original Message----- > From: linaro-toolchain-boun...@lists.linaro.org > [mailto:linaro-toolchain-boun...@lists.linaro.org] On Behalf Of Matthew > Gretton-Dann > Sent: Sunday, May 19, 2013 2:47 PM > To: Padgett Don-B43265 > Cc: linaro-toolchain@lists.linaro.org > Subject: Re: Semi-hosting on v8 Foundation Model using gnu tools > > Don, > > On 17/05/13 20:57, Padgett Don-B43265 wrote: >> The v8 Foundation Model User Guide has a bare metal hello world example >> that uses semi-hosting. The Makefile uses ARM tools, however. Is there >> equivalent support for this example using a bare metal version of the >> gnu tools, such as >> gcc-linaro-aarch64-none-elf-4.8-2013.04-20130422_linux.tar.xz? I took >> a look, but didn't see a way to do this. > > It is possible but not necessarily easy. > > Using the binary tools you've downloaded you will want to do something like > the following: > > aarch64-none-elf-gcc -specs=elf-aem-ve.specs ... > > The -specs option has to be on all your invocations of GCC and G++. You > should also invoke the linker through GCC with this option. > > Then you need to invoke the model, given an image called foo.axf: > > Foundation_v8 --image foo.axf --semi-host="foo.axf OPT1 OPT2" --quiet > > Note that the first option to --semi-host is the name of the image again. > > Thanks, > > Matt > > -- > Matthew Gretton-Dann > Toolchain Working Group, Linaro > > _______________________________________________ > linaro-toolchain mailing list > linaro-toolchain@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-toolchain > > > > _______________________________________________ > linaro-toolchain mailing list > linaro-toolchain@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-toolchain > -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation. _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain