|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[Bug binutils/10379] New: Objdump does not disassemble instructionsmips-elf-objdump (compiled from binutils 2.19) does not disassemble a sequence
of instructions in section .text if first instruction has a label: ============================== bug trace ================================ $ cat atest.s .global write .text write: SW $3, Z # OK if no label JR $31 .data Y: .word Z $ mips-elf-as -o atest.o atest.s $ mips-elf-objdump --version GNU objdump (GNU Binutils) 2.19.51.20090702 Copyright 2008 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. $ mips-elf-objdump -d atest.o atest.o: file format elf32-bigmips Disassembly of section .text: 00000000 <write>: 0: 3c 01 00 00 ac 23 00 00 03 e0 00 08 00 00 00 00 <....#.......... ========================================================================= -- Summary: Objdump does not disassemble instructions Product: binutils Version: 2.19 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: Pierre dot Habraken at imag dot fr CC: bug-binutils at gnu dot org GCC host triplet: i386-linux GCC target triplet: mips-elf 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- Additional Comments From nickc at redhat dot com 2009-07-17 09:26 ------- Created an attachment (id=4059) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4059&action=view) Document mips target's special handling of the .global pseudo-op -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- Additional Comments From nickc at redhat dot com 2009-07-17 09:26 ------- Hi Pierre, What do you think of the uploaded documentation patch ? Cheers Nick -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- Additional Comments From Pierre dot Habraken at imag dot fr 2009-07-23 10:08 ------- Subject: Re: Objdump does not disassemble instructions nickc at redhat dot com wrote: > ------- Additional Comments From nickc at redhat dot com 2009-07-17 09:26 ------- > Hi Pierre, > > What do you think of the uploaded documentation patch ? Hello Nick, Thanks for your patch, it looks fine (I just saw it, I have been away for two weeks). Best regards. Pierre -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-07-23 10:19 ------- Subject: Bug 10379 CVSROOT: /cvs/src Module name: src Changes by: nickc@... 2009-07-23 10:19:20 Modified files: gas : ChangeLog gas/doc : c-mips.texi Log message: PR binutils/10379 * doc/c-mips.texi (MIPS insn): Document the special behaviour of the .global directive for MIPS ports. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.3857&r2=1.3858 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/doc/c-mips.texi.diff?cvsroot=src&r1=1.48&r2=1.49 -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
|
|
[Bug binutils/10379] Objdump does not disassemble instructions------- Additional Comments From nickc at redhat dot com 2009-07-23 10:20 ------- Hi Pierre, OK, I have checked the patch in along with the following changelog entry. Cheers Nick gas/ChangeLog 2009-07-23 Nick Clifton <nickc@...> PR binutils/10379 * doc/c-mips.texi (MIPS insn): Document the special behaviour of the .global directive for MIPS ports. -- What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |FIXED 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. _______________________________________________ bug-binutils mailing list bug-binutils@... http://lists.gnu.org/mailman/listinfo/bug-binutils |
| Free embeddable forum powered by Nabble | Forum Help |