[arnm-elf-objdump] Can't use two -M flags for disassembler (-Mforce-thumb and -Mreg-names-raw)
Vincent Rubiolo
vincent.rubiolo@st.com
Thu Jul 17 15:31:00 GMT 2003
Hello Nick,
Thanks for your reply.
Investigating a little more, this seems to happen even with ARM-only/THUMB_only
code: the disassembler turns off -Mforce-thumb option when used with
-Mreg-names-raw for an ADS object file, either ARM or THUMB code.
You will find enclosed four files:
1. Hello.c is the source of an Hello World program (in case you need it)
2. Hello-THUMB.o is output of tcc, the ADS THUMB C compiler
3. Hello-ARM.o is the output of armcc, the ADS ARM C compiler (so you may
compare if needed)
4. The different commands issued to spot the problem
Note: To decrease the size of the object files, I disabled linking.
Let me tell you if there are other things you may find useful.
Thank you very much for your consideration.
Best regards,
Vincent
PS: I will only be back on Tuesday so I will not be able to reply before
nickc@redhat.com wrote:
[snip]
> Hmm - it is probably a case of ADS and GAS using different methods to
> distinguish between ARM and THUMB code in their object files. Please
> could you send me a *small* ADS object file which demonstrates this
> problem, so that I can try to find a fix ?
>
> Cheers
> Nick
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Hello.c
URL: <https://sourceware.org/pipermail/binutils/attachments/20030717/e945f138/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Commands
URL: <https://sourceware.org/pipermail/binutils/attachments/20030717/e945f138/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hello-ARM.o
Type: application/octet-stream
Size: 1096 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030717/e945f138/attachment.o>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hello-THUMB.o
Type: application/octet-stream
Size: 1104 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030717/e945f138/attachment-0001.o>
More information about the Binutils
mailing list