Same compiler on different OS produces different binary

Bug #1762170 reported by qmor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Incomplete
Undecided
Przemyslaw Wirkus

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.

Revision history for this message
Leo Havmøller (leh-p) wrote :

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

Revision history for this message
qmor (qmor-qmor) wrote :

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

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) wrote :

Hi,

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.

Revision history for this message
qmor (qmor-qmor) wrote :

Okay. Will prepare in a couple of days.

Revision history for this message
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.

Revision history for this message
Przemyslaw Wirkus (wirkus) wrote :

Hi qmor,

Are you able to provide example as promised please ? If not I will close this ticket as "Won't fix".

kind regards
Przemek

Changed in gcc-arm-embedded:
assignee: nobody → Przemyslaw Wirkus (wirkus)
status: New → Incomplete
tags: added: 2017q2
tags: added: linux macos
Revision history for this message
qmor (qmor-qmor) wrote :

Can't do work example on small project (< 1000 lines). Will prepare better and maybe then reopen bug with good example.
This bug may be closed now. Sorry and thanks.

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

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.