Same compiler on different OS produces different binary

Bug #1762170 reported by qmor on 2018-04-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain

Bug Description

I've installed 6 2017-q2-update on linux and on windows. I've also got an eclipse project with embeded application. I've compiled that project in linux and in windows and the binaries sizes are the same, but code(binaries) is slightly different.

I'm developing flight software and sometimes i need to patch some pieces of working software without uploading full size software, because of that the same binaries generated on any platform are so important for me.

Leo Havmøller (leh-p) wrote :

Generate .map files for both, and compare them to locate the difference.

qmor (qmor-qmor) wrote :

I did .lst file compare and part of that diff is in attachment


Could you give us a preprocessed testcase with the command-line you use to compile it? The diff gives us an idea of what part of the compiler behaves differently but to get to the bottom of the issue we need to be able to reproduce it on our machine.

Best regards.

qmor (qmor-qmor) wrote :

Okay. Will prepare in a couple of days.

qmor (qmor-qmor) wrote :

It's strange, but looks like it's only affected in a big project. I've found that function ErrQtnProper differs in "big" binaries, but when i compliles it separatelly binaries are the same.

Will try to make good example with a bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments