AnsweredAssumed Answered

S12 Z linker optimization setting to keep the unused section

Question asked by PRATIBHA SURABHI on Sep 3, 2017
Latest reply on Sep 4, 2017 by ZhangJennie

S12Z Linker optimization setting

 

We are trying to implement unit testing for our code .For the unit testing tool to run it create stub functions of all the functions .These stub functions are not referenced in the code .It just needs to be linked in the object file created .

For previous version of codewarrior shown in the screenshot below there was option to keep or remove the unused sections.

 

 

Can you please tell how to do in present s12z linker setting  .As the linker is removing the unused objects in the object file created .

The present linker optimisation setting is this

 

Thanks in advance

Outcomes