Re: [arm-gnu] STM32 sh_link warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] STM32 sh_link warning



Stephen Osborn pisze:
Anybody have any suggestions how to get rid of the sh_link warning?

This one's crazy, you're gonna like it [;

To get rid of it, you should place the __exidx_start / ..._end definitions OUTSIDE the .ARM.exidx section, like this:

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

BTW - you really don't want anything placed in exidx section, as this means that some of the functions are using c++ exceptions.

4\/3!!