Menu

#4 link error

open
nobody
None
5
2009-09-15
2009-09-15
Anonymous
No

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

Discussion

  • Mariano Cerdeiro

    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.-

     
  • Nobody/Anonymous

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.