The output binary files are different built by arm-gcc 5.3 linux and win32.

Asked by Song.Pu

We used the arm-gcc-4.8 (Linux/win32) to build our codebases in Linux OS and Windows MinGW.
The MinGW output binary file is same as Linux binary file.

But the two binary files are different after we used arm-gcc-5.3 (Linux/win32). (same codebase, same compiler option)

such as

The elf.s disassembly code built by arm-gcc-5.3-linux is described as bleow.

10087196: f8dd b034 ldr.w fp, [sp, #52] ; 0x34
1008719a: f8dd 9028 ldr.w r9, [sp, #40] ; 0x28
1008719e: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c
100871a2: 9e0c ldr r6, [sp, #48] ; 0x30
100871a4: f8dd a018 ldr.w sl, [sp, #24]
100871a8: f8dd e01c ldr.w lr, [sp, #28]
100871ac: 9f08 ldr r7, [sp, #32]
100871ae: 9b09 ldr r3, [sp, #36] ; 0x24

The result by arm-gcc-5.3-win32is:

10087196: f8dd a018 ldr.w sl, [sp, #24]
1008719a: f8dd 9028 ldr.w r9, [sp, #40] ; 0x28
1008719e: f8dd b034 ldr.w fp, [sp, #52] ; 0x34
100871a2: 9b09 ldr r3, [sp, #36] ; 0x24
100871a4: 9e0c ldr r6, [sp, #48] ; 0x30
100871a6: 9f08 ldr r7, [sp, #32]
100871a8: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c
100871ac: f8dd e01c ldr.w lr, [sp, #28]

Question information

Language:
English Edit question
Status:
Expired
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andre Vieira (andre-simoesdiasvieira) said :
#1

Hi Song Pu

That doesn't sound good. Is there a chance you can provide us with a reduced testcase such that we can reproduce this behavior?

Best Regards,
Andre

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.