From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26680 invoked by alias); 14 Jul 2003 14:48:37 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 26175 invoked from network); 14 Jul 2003 14:48:23 -0000 Received: from unknown (HELO beta.dmz-eu.st.com) (164.129.1.35) by sources.redhat.com with SMTP; 14 Jul 2003 14:48:23 -0000 Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 7770FDB1F; Mon, 14 Jul 2003 14:48:21 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id 50FEF6179; Mon, 14 Jul 2003 14:48:21 +0000 (GMT) Received: from eux100.sgp.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3035B184B; Mon, 14 Jul 2003 14:48:21 +0000 (GMT) Received: from st.com ([164.129.146.143]) by eux100.sgp.st.com (8.9.3 (PHNE_24419+JAGae58098)/8.9.3) with ESMTP id QAA23117; Mon, 14 Jul 2003 16:48:20 +0200 (METDST) Message-ID: <3F136B7B.6090201@st.com> Date: Mon, 14 Jul 2003 14:48:00 -0000 From: Vincent Rubiolo User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: binutils@sources.redhat.com Cc: nickc@redhat.com Subject: Re: [arnm-elf-objdump] Can't use two -M flags for disassembler (-Mforce-thumb and -Mreg-names-raw) References: <3F0E3141.4060706@st.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00252.txt.bz2 Hello, Sorry for the delay. I am using binutils 2.14 and also a snapshot from the 19th of June. The problem arises when I try to inspect THUMB code generated by ADS (interworking enabled). I have to use -Mforce-thumb, otherwise everything is seen as ARM code. Here are the outputs (from a C file compiled as THUMB): % arm-elf-objdump -d ADS_file -Mforce-thumb 1002444: b510 push {r4, lr} % arm-elf-objdump -d ADS_file -Mforce-thumb -Mreg-names-raw 1002444: 2400b510 strcs r11, [r0], -#1296 The first one is correct. Pb then, as it seems that the -Mreg-names-raw turned off the -Mforce-thumb option on the second attempt. Also, on ARM code, it works just as you stated: % arm-elf-objdump -d ADS_file 1000150: e1a0f00c mov pc, ip % arm-elf-objdump -d ADS_file -Mreg-names-raw 1000150: e1a0f00c mov r15, r12 % arm-elf-objdump -d ADS_file -Mreg-names-raw -Mforce-thumb 1000150: e1a0f00c blx 100c494 <$b+0x36> Hope that clarify the situation. Thing is I am operating the opposite way (looking at THUMB code). Regards, Vincent nickc@redhat.com wrote: > Hi Vincent, > > >>This may be very stupid but I am unable to use both flags >>-Mreg-names-raw and -Mforce-thumb at the same time (arm-elf-objdump) > > > Which version of binutils are you using ? > > It appears to work for me (using the current CVS sources and the 2.14 > release): > > % objdump -d mov.o > > 0: e1a0e00f mov lr, pc > > % objdump -d -Mreg-names-raw nop.o > > 0: e1a0e00f mov r14, r15 > > % objdump -d -Mreg-names-raw -Mforce-thumb nop.o > > 0: e00f b 22 > 2: e1a0 b 346 > > Cheers > Nick >