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.

Difference between Ducati builds from Windows vs Linux PC

The Ducati team asked me to post this here to get an answer on why we are seeing difference between Linux and Windows builds in the code section.

See email excerpt below and attached files...


I am attaching the section wise breakup of three images buillt on different machines (by different members of our team) which have the same versions of the tools and also the same version of the Ducati Syslink code (built only once).

 There is a difference in the code section of the Ducati image that is built on Windows and Linux. The size is very small (12 bytes) - Will need the compiler team to investigate this discrepancy.

Regards,
Amith Dsouza

DucatiDiff.zip
  • I cannot tell what the difference is based on what you have here.  But I can tell you how to track the difference down.

    The cg_xml package includes a utility named objdiff which can compare executables and libraries.  It will tell you which section contains the difference, and the offset in the section of where the difference is.  Add that offset to the start address of the section in target memory and now you know the address in memory where the difference is.  Track down that address in the linker map file to find the source file which contains the difference.  From there it should be straightforward to figure out what is occurring.

    Thanks and regards,

    -George