aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-01-27 20:05:32 +0000
committerNick Clifton <nickc@redhat.com>2000-01-27 20:05:32 +0000
commit2f0ca46a499086b1c438f5b1768f383fa60351e2 (patch)
tree88517aeb7b941a0f8137cb60cfbbd1268941aab6 /gas/config/tc-arm.c
parentfa3061313cf6689dc5c4df66d29fe56209c689e0 (diff)
downloadgdb-2f0ca46a499086b1c438f5b1768f383fa60351e2.zip
gdb-2f0ca46a499086b1c438f5b1768f383fa60351e2.tar.gz
gdb-2f0ca46a499086b1c438f5b1768f383fa60351e2.tar.bz2
Apply Thoams de Lellis's patch to fic disassembly of Thumb instructions when
bounded by non-function labels.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r--gas/config/tc-arm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 19ead2e..31ab321 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -6888,12 +6888,14 @@ arm_adjust_symtab ()
{
if (ARM_IS_THUMB (sym))
{
+ elf_sym = elf_symbol (symbol_get_bfdsym (sym));
+ bind = ELF_ST_BIND (elf_sym);
+
+ /* If it's a .thumb_func, declare it as so, else tag label as .code 16. */
if (THUMB_IS_FUNC (sym))
- {
- elf_sym = elf_symbol (symbol_get_bfdsym (sym));
- bind = ELF_ST_BIND (elf_sym);
- elf_sym->internal_elf_sym.st_info = ELF_ST_INFO (bind, STT_ARM_TFUNC);
- }
+ elf_sym->internal_elf_sym.st_info = ELF_ST_INFO (bind, STT_ARM_TFUNC);
+ else
+ elf_sym->internal_elf_sym.st_info = ELF_ST_INFO (bind, STT_ARM_16BIT);
}
}
#endif