VGDB1000 error

Sysprogs forums Forums VisualGDB VGDB1000 error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #677
    Anonymous
    Participant

    Hi,

    i am trying to build a program for an stm32f3 with c++ code. So far so good. But when i try to use a map(std::map m_PortMap), i get this compile error:
    “error VGDB1000: undefined reference to ‘__exidx_end'”
    “error VGDB1000: undefined reference to ‘__exidx_start'”
    in the file unwind-arm-common.inc

    I have no idea whats the problem here, can someone make something out of this?

    Greets,

    **Jürgen**

    #2763
    Anonymous
    Participant

    @opiswahn wrote:

    Hi,

    i am trying to build a program for an stm32f3 with c++ code. So far so good. But when i try to use a map(std::map m_PortMap), i get this compile error:
    “error VGDB1000: undefined reference to ‘__exidx_end'”
    “error VGDB1000: undefined reference to ‘__exidx_start'”
    in the file unwind-arm-common.inc

    I have no idea whats the problem here, can someone make something out of this?

    Greets,

    **Jürgen**

    Hi Jurgen,

    It looks like you are missing the below from your linker script:

    .ARM.exidx :
    {
    __exidx_start = .;
    *(.ARM.exidx* .gnu.linkonce.armexidx.*)
    __exidx_end = .;
    } > rom

    Make sure you change “rom” to whatever alias you use for your FLASH area. The reason why you need that is because you are linking to libstdc++.a and that lib stores some of its code/data in the “.ARM.exidx” section. Hope that helps.

    #2764
    Anonymous
    Participant

    That did the trick. Thank you very much!! 😀 😀

    #2765
    support
    Keymaster

    Just FYI: we have patched our STM32 linker scripts to include this fix. You can re-download the STM32 package from the Wizard to get the new fixed scripts.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.