Hi,

Thanks Charles for the reply.
The .type directive works fine now.
Thanks again.

Regards,
Vishwa

-----Original Message-----
From: Charles Baylis [mailto:charles.bay...@linaro.org]
Sent: Wednesday, March 12, 2014 12:32 AM
To: Vishwanath C
Cc: linaro-toolchain@lists.linaro.org; Yugandhar Mothukuri; Sanjeev Verma
Subject: Re: Trouble executing ARM code on linaro toolchain

Hi

On 6 March 2014 14:22, Vishwanath C <vishwanat...@aricent.com> wrote:
> We are using Linaro 13.03
> toolchain(gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux We
> are trying to execute a simple test code to check whether ARM assembly
> code executes on board or not. Execution is on Arndale Board. Every
> time We include assembly function, We get segmentation fault.  Kindly
> check if I We are missing any arm related flags in makefile.

I believe that you need a .type directive in the assembly file.
        .type   sTestArnDale, %function

With that change (and the removal of the OpenCL library, which I don't
have) your example runs successfully on QEMU.

Hope this helps
Charles




===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================

_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to