This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR2944: TI CLANG compiler remove metadata from output hex file

Part Number: AWR2944

Hello,

The compiler injects metadata in the final binary like compilation paths and user names.

I would like to remove all this data so if compilation happens on multiple PCs would generate identical hex file.

Is there a possibility to do so?

BR,
Andrew

  • Your case is similar, though not identical, to the one in this forum thread.  Though I have since thought of another way to investigate.  Using the disassembly works.   But I think it is easier to ...

    Determine the address in target memory for where one these undesired paths or names is located.  Search the linker map file for that address.  If you don't get a direct hit, search for addresses that are close to, but not past, the problem address.  That shows you the object file name.  I presume you have access to the corresponding source file.  Preprocess that source file.  Search that preprocessed file for the offending string.  Work out how that happened, and what you might do to stop it.

    To learn how to preprocess a source file ... Perform the preprocessing step described in the article How to Submit a Compiler Test Case.  Do not submit that preprocessed file.  Use it for your own investigation.

    Thanks and regards,

    -George