Bug report linked to http://sourceware.org/ml/binutils/2009-01/msg00380.html
If I assemble the attached ARM/Thumb code using arm-none-eabi-as, and look at
the object file with objdump, I can see:
Disassembly of section .text:
00000000 <app_func2>:
0: e12fff1e bx lr
4: 46c046c0 strbmi r4, [r0], r0, asr #13
8: 46c046c0 strbmi r4, [r0], r0, asr #13
c: 46c046c0 strbmi r4, [r0], r0, asr #13
Disassembly of section .far_thumb:
00000000 <lab1>:
0: e12fff1e bx lr
00000004 <lab2>:
4: 4770 bx lr
00000006 <lab3>:
6: 4770 bx lr
I don't understand why app_func2 is padded with Thumb NOPs while it is written
in ARM mode. If I remove the .thumb_func directive (after lab2), then the
padding is encoded in ARM.
I tried to understand where gas does this padding, but I couldn't find it.
--
Summary: Gas uses Thumb padding within ARM code
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: christophe dot lyon at st dot com
CC: bug-binutils at gnu dot org
GCC target triplet: arm-none-eabi
http://sourceware.org/bugzilla/show_bug.cgi?id=9814
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils