CCSTUDIO-THEIA: c29 linker invokation issue

Part Number: CCSTUDIO-THEIA


Hello TI team, 

following Alan's advice to separate compilation and linking stages while using LTO we ran into the following issue. Compilation is done with -c flag which generates objects files needed. After that through cmd.exe we invoke linker. All the files needed are collected in one folder - object files generated from source code, object file generated from bitfield_structs.h/.c, drivelib.lib, sfo.lib and linker cmd file. 

c29clang *.o driverlib.lib sfo.lib shared_linker.cmd   

Result is the following error: ".TI.ramfunc" section generated by __attribute__((ramfunc)) or
   --ramfunc=on requires a SECTIONS specification to function.

We believe it is misleading since TI.ramfunc is defined in SECTIONS as follows:

#ifdef BOOTLOADER
   .TI.ramfunc   : { -l F29H85x_NWFlashAPI_v21.00.00.00.lib } LOAD=FLASH_PRGM, RUN=RAM_LPA_CPU1, table(BINIT), palign(16)
#else
    .TI.ramfunc   : {} LOAD=FLASH_PRGM, RUN=RAM_LPA_CPU1, table(BINIT), palign(16)
    .TI.ramfunc   : {} > RAM_LPA_CPU1, table(BINIT), palign(16)
#endif

The question is: if linker invokation is correct or are there certain options we need to add?