Re: Regarding Linking my code using Linaro's GNU-GCC Toolchain 4.6.2

2012-06-12 Thread Michael Hope
On 12 June 2012 18:53, Akash D aka...@renuelectronics.com wrote:
 Hello Michael,

 Thanks for reply.

 The required information is mentioned below.

 Compiler Used ---

 http://launchpad.net/gcc-arm-embedded

 Version number 

 arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.6.2 20110921
 (release) [ARM/embedded-4_6-branch revision 182083]

Yip, this is ARM's Cortex-R  M bare metal toolchain.  It doesn't come
directly from Linaro but we've got a good relationship with them.
I'll ping them and see the best place to ask this question.

 The link file is attached with this mail.

I only had a quick read, but you're missing a capture for the
'.text.startup' section in the linker script.  You might need
something like:

 *(.text.startup)

before the one.o(.text) line or to change the *(.text) capture to
*(.text*).  The startup section might need to be at a fixed address.
Please check your chip and toolchain documentation to confirm.

-- Michael

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


Re: Regarding Linking my code using Linaro's GNU-GCC Toolchain 4.6.2

2012-06-10 Thread Michael Hope
On 8 June 2012 17:23, Akash D aka...@renuelectronics.com wrote:
 Hello  Sir/Madam,

 I am using MK60FN1M0VLQ12 (COTREX-M4) processor for my development.

 I am using float and double data types in my code. When I perform any
 mathematical operation on these variables, the processor goes to Hard Fault
 Exception.

 Earlier I have used GCC  4.5.2 compiler for my compilation

 So now I am using Linaro’s GNU-GCC Toolchain 4.6.2 for compiling my code
 with following command.

Hi Akash.  Could you confirm which compiler you are using.  Is it this one:
 http://launchpad.net/gcc-arm-embedded

or this one:
 https://launchpad.net/linaro-toolchain-unsupported

If you run 'arm-none-eabi-gcc --version', what version number does it show?

 arm-none-eabi-gcc -Wall -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mcpu=cortex-m4
 -mthumb -Qn -Os  -mlong-calls -c main.c -o main.o

 But I am getting following error while linking my code

 ld: section .text.startup loaded at [00032258,000331cb] overlaps section
 .InitializedVariables loaded at [00032258,00032787]

 The link file is attached with this mail.

I couldn't find the attachment.  Could you resend it please?

-- Michael

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