Re: [arm-gnu] G++ for ARM Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] G++ for ARM Question
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] G++ for ARM Question
- From: Paul Brook <paul@xxxxxxxxxxxxxxxx>
- Date: Mon, 29 Jan 2007 19:24:35 +0000
On Monday 29 January 2007 19:00, Brad Bas wrote:
> We recently received Sourcery G++ for ARM on demo basis. I am trying to
> compile a simple hello world program using the command line compiler. I
> used the -mcpu=arm920t option and had no errors compiling.
As mentioned in the getting started guide you much specify -march=armv4t when
compiling for armv4t CPUs like the arm920t. Otherwise the linker may end up
pulling in code that does not work on your CPU.
> When I load the
> the executable to the target board I cannot run it. I get and error saying
> permission denied. I have verified the required library is on the target
> and the attributes changed to allow execution.
Check the permissions on the dynamic loader (/lib/ld-2.3.6.so). This must be
executable to run dynamically linked executables (linux executables are
normally dynamically linked).
Paul