bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/10379] Objdump does not disassemble instructions


From: nickc at redhat dot com
Subject: [Bug binutils/10379] Objdump does not disassemble instructions
Date: 14 Jul 2009 16:49:39 -0000

------- Additional Comments From nickc at redhat dot com  2009-07-14 16:49 
-------
Hi Pierre,

  This behaviour appears to be for compatibility with the Irix 5  assembler.  By
default any symbol declared with the .global (or .globl) pseudo-op is assumed to
mark the start of region of data, not code.  Hence in your test case objdump
believes that it is showing raw data, not instructions, and so it does not
disassemble them.

  The workaround is to add a (code) section name after the symbol name in the
.global pseudo-op.  Ie change the first line of your test case to:

         .global   write .text

This is an (undocumented) extension to the normal behaviour of the .global
pseudo-op.  So I guess I had better start writing some prose... 

Cheers
  Nick



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10379

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]