[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries

2009-12-04 Thread chris at seberino dot org

--- Additional Comments From chris at seberino dot org  2009-12-04 19:15 
---
Subject: Re:  Bug in objdump when disassembling raw
armv4t binaries

On Thu, Dec 03, 2009 at 10:54:51AM -, nickc at redhat dot com wrote:
> They are unpredictable because they use the program counter as the address
> register.  See page A5-45 of your ARM ARM:
>
>   "Specifying R15 as register Rn has UNPREDICTABLE results."

Nick

Thanks for being patient with my mistakes.  Between the two of us, we'll catch
each other's mistakes and both end up stronger for it.

OK I think I found a bug on an old fix to redeem myself

0x00bf returns strheq r0, [r0], -pc (pc = r15)

ARM ARM say for this situation neither Rn nor Rm can be pc (R15).
Hence, we need an "; " for this case too.

cs

P.S. By the way, I'm using ARM ARM version ARM DDI 0100I which has different
page numbers than your version.  I can send you my PDF if you wish.


-- 


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 gas/11054] New: Suspicious error "missing .fnstart before unwinding directive" from libffi's ARM code

2009-12-04 Thread flameeyes at gmail dot com
I found this out while trying to build a cross-gcj compiler for ARM targets:
when using binutils 2.20 the build fails at libffi because of this error:

libtool: compile: 
/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/build/./gcc/xgcc
-B/var/tmp/cross/arm-carel-linux-gnu/portag
e/cross-arm-carel-linux-gnu/gcc-4.3.4/work/build/./gcc/
-B/usr/arm-carel-linux-gnu/bin/ -B/usr/arm-carel-linux-gnu/lib/ -isystem
/usr/arm-carel-linux-gnu/include -
isystem /usr/arm-carel-linux-gnu/sys-include -I.
-I/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/include
-Ii
nclude
-I/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src
-O2 -g -O2 -pipe -c /var/tmp/cross/arm-carel-linu
x-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S
 -fPIC -DPIC -o src/arm/.libs/sysv.o
/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S:
Assembler messages:
/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S:238:
Error: missing .fnstart before unwinding directive

Tracking this down, seems like it doesn't like .pad directive if it's not
prefixed by the @ symbol. Unfortunately I'm not really much into ARM assembly so
I can't tell what the problem is there. binutils 2.18 builds libffi perfectly
fine as far as I can tell.

I'm attaching two testcases that reduce the problem; testcase2.s is a reduced
case as taken by sysv.S, while testcase3.s is a working alternative; I have no
idea if they are meant to be the same though, I'm afraid.

-- 
   Summary: Suspicious error "missing .fnstart before unwinding
directive" from libffi's ARM code
   Product: binutils
   Version: 2.20
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: flameeyes at gmail dot com
CC: bug-binutils at gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-*-linux-gnu


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

--- 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 gas/11054] Suspicious error "missing .fnstart before unwinding directive" from libffi's ARM code

2009-12-04 Thread flameeyes at gmail dot com

--- Additional Comments From flameeyes at gmail dot com  2009-12-04 20:25 
---
Created an attachment (id=)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=&action=view)
Failing testcase


-- 


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

--- 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 gas/11054] Suspicious error "missing .fnstart before unwinding directive" from libffi's ARM code

2009-12-04 Thread flameeyes at gmail dot com

--- Additional Comments From flameeyes at gmail dot com  2009-12-04 20:25 
---
Created an attachment (id=4445)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4445&action=view)
Working testcase


-- 


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

--- 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 gas/11054] Suspicious error "missing .fnstart before unwinding directive" from libffi's ARM code

2009-12-04 Thread flameeyes at gmail dot com

--- Additional Comments From flameeyes at gmail dot com  2009-12-04 22:37 
---
Given that @ simply comments the thing out, I guess the point is that testcase3
is *empty* at that point, so I guess this is a bug in gcc's sourcesÂ…


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


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

--- 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 gold/11055] New: incremental-dump assumes 64bit little endian ELF input

2009-12-04 Thread hjl dot tools at gmail dot com
incremental-dump.cc has

 Incremental_binary* inc = open_incremental_binary(file);
...
 elfcpp::Elf_file<64, false, Incremental_binary> elf_file(inc);

It is very strange to assume all input ELF files are 64bit
little endian ELF.

-- 
   Summary: incremental-dump assumes 64bit little endian ELF input
   Product: binutils
   Version: 2.21 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: ian at airs dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org


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

--- 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/11037] invalid code generation depending on code position

2009-12-04 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-12-05 
03:38 ---
It is a regression. Binutils 2.19 works correctly.

-- 
   What|Removed |Added

 CC||hjl dot tools at gmail dot
   ||com


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 gas/11037] invalid code generation depending on code position

2009-12-04 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-12-05 
03:40 ---
It is an assembler bug.

-- 
   What|Removed |Added

  Component|binutils|gas


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 gas/11037] invalid code generation depending on code position

2009-12-04 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-12-05 
04:54 ---
It is caused by:

http://sourceware.org/ml/binutils-cvs/2009-10/msg00245.html

-- 
   What|Removed |Added

 CC||amodra at bigpond dot net
   ||dot au


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