link error
Project has been move to https://github.com/ciaa/Firmware
Status: Inactive
Brought to you by:
cerdeiro
checking with version 0.3.0 under debian:
Linking out/bin/FreeOSEK
arm-none-linux-gnueabi-ld out/obj/main.o out/lib/OpenGEN.a out/lib/OpenDRV_StartUp.a out/lib/OpenDRV_Dio.a out/lib/OpenDRV_Mcu.a out/lib/FreeOSEK.a -TOpenGEN/ld/arm7/lpc2468/lpc_e2468.cmd -Map out/bin/FreeOSEK.map -o out/bin/FreeOSEK
arm-none-linux-gnueabi-ld: error: no memory region specified for loadable section `.ARM.exidx'
make: *** [FreeOSEK] Error 1
best regards,
XIE Wensheng
Hello XIE,
it has to be a problem with the linker script: OpenGEN/ld/arm7/lpc2468/lpc_e2468.cmd
in the script there is no section called exidx, for me is not clear why you need that section. you can add it and then it shall work. If the section is really needed we shall update the file on freeosek, but is not clear for me now, i will try to check why you need it...
Which user do you have on sourceforge, I would like to contact you per mail or chat so we can found the solution easily.
regards,
Mariano.-
Hi, Mariano:
Thanks for the help.
I try to add the following base on information: http://embdev.net/topic/129609
.ARM.exidx :
{
__exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .;
} >flash
into the lpc_e2468.cmd file, but still failed to link
Linking out/bin/FreeOSEK
arm-none-linux-gnueabi-ld out/obj/main.o out/lib/OpenGEN.a out/lib/OpenDRV_StartUp.a out/lib/OpenDRV_Dio.a out/lib/OpenDRV_Mcu.a out/lib/FreeOSEK.a -TOpenGEN/ld/arm7/lpc2468/lpc_e2468.cmd -Map out/bin/FreeOSEK.map -o out/bin/FreeOSEK
arm-none-linux-gnueabi-ld: out/bin/FreeOSEK: warning: sh_link not set for section `.ARM.exidx'
out/obj/main.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
out/lib/OpenDRV_Dio.a(Dio_Init.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
out/lib/OpenDRV_Dio.a(Dio_Init_Arch.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
out/lib/OpenDRV_Mcu.a(Mcu_Init.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
out/lib/OpenDRV_Mcu.a(Mcu_InitClock.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
out/lib/OpenDRV_Mcu.a(Mcu_Init_Arch.o):(.ARM.exidx+0x0): more undefined references to `__aeabi_unwind_cpp_pr0' follow
make: *** [FreeOSEK] Error 1
which arm-gcc are you using? I use the Sourcery G++.
best regards,
XIE Wensheng