Hello,
I'm developing software for TMS570 Hercules MCU, using TI compiler (v5.2.5).
I try to put assembly file that defines exception vector in the static library. Assembler code contains section specifier:
.sect ".intvecs"
However, when I link my project with this library, this section is not included in the final executable. I checked with nm tool, and library contains .intvecs symbol. Linker script is simple and contains following rules:
--retain="*(.intvecs)" /* other code */ MEMORY { VECTORS (X) : origin=0x00000000 length=0x00000020 /* other code */ } /* other code */ SECTIONS { .intvecs : {} > VECTORS /* other code */ }
When .intvecs is linked using object file instead of static library, final executable has .intvecs section in the right place.
Can someone give me hint if there is any assembler or linker option to link this section correctly from static library?
Thank you.