Hi, I am trying to build a project in linux using the arm-none-eabi-gcc compiler (version 5.4.1). But the binari file differs by 8 kilobytes, if compiled in Windows with the compiler from IDE. The same makefile is used.
How can I build a project in Linux so that the build result would be the same?
Is it possible that the IDE uses a non-release version of the compiler?
Left window: Build result and compiler version in Windows.
Right window: Build result and compiler version in debian docker.
If i use this version of compiler i get same result.
Debian use some other build of 5.4.1 compiler.
That was the problem. It has now been resolved.

When are you planning to migrate to newer versions of the compiler?
@geometry dash
It is entirely possible—and very likely—that the Windows IDE uses a non-identical (possibly customized) toolchain, which leads to a different binary output. Achieving identical builds across Linux and Windows requires not just the same Makefile, but a bit-for-bit identical toolchain, libraries, linker scripts, and build configuration.