 |
|
|
|
Actions
|
|
[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[arm-gnu] access beyond end of merged section
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: [arm-gnu] access beyond end of merged section
- From: "simon.kallweit@xxxxxxxxx" <simon.kallweit@xxxxxxxxx>
- Date: Thu, 02 Oct 2008 17:04:26 +0200
Hi
I'm trying to use the latest codesourcery arm-eabi toolchain to compile
eCos for an stm32 (cortex-m3). I get a few strange link failures. The
resulting code crashes, for some functions. Inspecting the assembler
output and stepping with gdb, revealed for example that a wrong pointer
to a constant string literal was loaded to a register, therefore
crashing printf.
Code is compiled using the following compiler switches:
-c -finline-limit=7000 -mthumb -mcpu=cortex-m3 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections
-fdata-sections -fno-exceptions -fno-use-cxa-atexit -Wno-write-strings -Wp
I have adapted the codesourcery linker scripts to work with ecos,
nothing exceptional here.
Here the linker errors I get:
arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -Wl,--gc-sections -Wl,-static
-g -nostdlib -L/home/simon/ecos/build/stm32/redboot/build/install/lib
-Ttarget.ld -o
/home/simon/ecos/build/stm32/redboot/build/install/bin/redboot.elf
/home/simon/ecos/build/stm32/redboot/build/install/lib/version.o
/home/simon/ecos/tools/bin/../lib/gcc/arm-none-eabi/4.2.3/../../../../arm-none-eabi/bin/ld:
/home/simon/ecos/build/stm32/redboot/build/install/lib/extras.o: access
beyond end of merged section (-32599)
/home/simon/ecos/tools/bin/../lib/gcc/arm-none-eabi/4.2.3/../../../../arm-none-eabi/bin/ld:
/home/simon/ecos/build/stm32/redboot/build/install/lib/extras.o: access
beyond end of merged section (-32603)
/home/simon/ecos/tools/bin/../lib/gcc/arm-none-eabi/4.2.3/../../../../arm-none-eabi/bin/ld:
/home/simon/ecos/build/stm32/redboot/build/install/lib/extras.o: access
beyond end of merged section (-32603)
/home/simon/ecos/tools/bin/../lib/gcc/arm-none-eabi/4.2.3/../../../../arm-none-eabi/bin/ld:
/home/simon/ecos/build/stm32/redboot/build/install/lib/extras.o: access
beyond end of merged section (-32599)
Any ideas what could go wrong here?
Best regards
Simon
|
|