[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/9814] New: Gas uses Thumb padding within ARM code
From: |
christophe dot lyon at st dot com |
Subject: |
[Bug gas/9814] New: Gas uses Thumb padding within ARM code |
Date: |
4 Feb 2009 10:26:05 -0000 |
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 gas/9814] New: Gas uses Thumb padding within ARM code,
christophe dot lyon at st dot com <=
- [Bug gas/9814] Gas uses Thumb padding within ARM code, christophe dot lyon at st dot com, 2009/02/04
- [Bug gas/9814] Gas uses Thumb padding within ARM code, nickc at redhat dot com, 2009/02/04
- [Bug gas/9814] Gas uses Thumb padding within ARM code, nickc at redhat dot com, 2009/02/04
- [Bug gas/9814] Gas uses Thumb padding within ARM code, christophe dot lyon at st dot com, 2009/02/04
- [Bug gas/9814] Gas uses Thumb padding within ARM code, cvs-commit at gcc dot gnu dot org, 2009/02/06
- [Bug gas/9814] Gas uses Thumb padding within ARM code, nickc at redhat dot com, 2009/02/06