Part Number: C29-CGT
Hello,
I am using c29clang (for the F29H85X) (from C29-CGT IDE, configuration, compiler or debugger | TI.com ) and attempting to use the `--honor_cmdfile_order` option to order the output sections how they are ordered in the linker command file.
According to 8.4.3. Command File Preprocessing Options — C29 Clang Compiler Tools User's Guide this should cause any output sections that are not being placed to a specific memory address to be placed in the order the linker command file is in, however this does not seem to work. While the option does have an effect on the resultant order it does not necessarily order them correctly (according to the generated map file).
I have attached a minimum reproduction (test.zip), executing `C:\ti\ccs2031\ccs\tools\compiler\ti-cgt-c29_2.2.0.LTS\bin\c29clang.exe main.c test.cmd` in this folder should result in a `test.map` file being generated (I have also reproduced this on ti-cgt-c29_2.0.0.STS).
My understanding of the expected behaviour is for the sections to be allocated in order: .main, .text, .rodata, .data (due to the existance of the --honor_cmdfile_order flag) however on my system they are instead ordered as: .main, .rodata, .data, .text (along with some llvm helpers that are irrelevant for this).
Kind Regards, William Rose