Hello,
We have started using the new CGT 8.3.9 and found that --retain option doesn't work correctly. When I'm using the third form from https://www.ti.com/lit/ug/sprui03b/sprui03b.pdf (8.4.26 Retain Discarded Sections (--retain Option)) then my section isn't retained. I found a workaround for it using wildcards and quotes.
Working:
--retain="*.lib"<printf.obj>(.text)
Not working:
--retain=rts64plus_eabi.lib<printf.obj>(.text)
As far as I know, our last version of CGT was 7.3.8 where everything works fine.
BR,
Mateusz