[Bug binutils/11037] New: invalid code generation depending on code position
good code: .intel_syntax .globl main main: jmp DWORD PTR[ %edx + var_1 - 0x1000 ] var_1: .byte 0x11, 0x22, 0x33, 0x44 code generated: (objdump rip) 08048394 : 8048394: ff a2 9a 73 04 08 jmp*0x804739a(%edx) 0804839a : ... the jmp correctly references var_1 - 0x1000 (0804839a -0x1000 = 0x804739a) but modified code: .intel_syntax .globl main var_1: .byte 0x11, 0x22, 0x33, 0x44 main: jmp DWORD PTR[ %edx + var_1 - 0x1000 ] code generated: (objdump rip) 08048394 : 8048394: 11 22 8048396: 33 44 08048398 : 8048398: ff a2 94 83 04 08 jmp*0x8048394(%edx) the jmp directly accesses var_1 it seems to forget to add -0x1000 to memory deref $ as --version GNU assembler (GNU Binutils for Debian) 2.20 -- Summary: invalid code generation depending on code position Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: serpilliere at droids-corp dot org CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11037 --- 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@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries
--- Additional Comments From nickc at redhat dot com 2009-12-01 12:07 --- Hi Chris, > Please flag all loads and stores with the following format as unpredictable... A checked a variety of the patterns you suggested and they are all flagged as unpredictable, so I think that the disassembler is working correctly. Cheers Nick -- http://sourceware.org/bugzilla/show_bug.cgi?id=10924 --- 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@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11017] PAGE_SIZE redefined in dlltool.c
--- Additional Comments From jerker dot back at gmail dot com 2009-12-01 13:46 --- Created an attachment (id=4434) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4434&action=view) Solution based on COFF_PAGE_SIZE Antother solution could be to use COFF_PAGE_SIZE. The COFF_PAGE_SIZE define must then be moved from implementation to header. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11017 --- 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@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries
--- Additional Comments From chris at seberino dot org 2009-12-01 15:20 --- Subject: Re: Bug in objdump when disassembling raw armv4t binaries On Tue, Dec 01, 2009 at 12:07:56PM -, nickc at redhat dot com wrote: > > --- Additional Comments From nickc at redhat dot com 2009-12-01 12:07 > --- > Hi Chris, > > > Please flag all loads and stores with the following format as > > unpredictable... > > A checked a variety of the patterns you suggested and they are all flagged as > unpredictable, so I think that the disassembler is working correctly. I tried to apply the patch to binutils-2.20.51 and patch said it looked like the patch was applied already so I did NOT apply it. Did I blow it? Must I apply the patch to another version? cs -- http://sourceware.org/bugzilla/show_bug.cgi?id=10924 --- 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@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: ar: undefined symbol: bfd_plugin_set_program_name
Following is my configure options: AR=ar AS=as ${SRCDIR}/binutils-2.20/configure --prefix=${CLFSCROSSTOOL} \ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \ --disable-nls --enable-shared --disable-multilib make configure-host make Alan Modra wrote: > > On Wed, Nov 18, 2009 at 01:37:55AM -0800, david levis wrote: >> ar: symbol lookup error: ar: undefined symbol: >> bfd_plugin_set_program_name > > Please show the options you passed to configure. > > -- > Alan Modra > Australia Development Lab, IBM > > > ___ > bug-binutils mailing list > bug-binutils@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-binutils > > -- View this message in context: http://old.nabble.com/ar%3A-undefined-symbol%3A-bfd_plugin_set_program_name-tp26404888p26585955.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries
--- Additional Comments From chris at seberino dot org 2009-12-02 06:41 --- Subject: Re: Bug in objdump when disassembling raw armv4t binaries On Tue, Dec 01, 2009 at 07:20:14AM -0800, ch...@seberino.org wrote: > I tried to apply the patch to binutils-2.20.51 and patch said it looked like > the patch was applied already so I did NOT apply it. See here... % cd binutils-2.20.51 % patch -p0 < pr10924_arm-dis.c_patch.3 patching file opcodes/arm-dis.c Reversed (or previously applied) patch detected! Assume -R? [n] cs -- http://sourceware.org/bugzilla/show_bug.cgi?id=10924 --- 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@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils