[Bug binutils/24907] Objdump produces wrong branch opcode interpretation in some cases

2019-08-15 Thread itayzac89 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24907

itayzac89 at gmail dot com changed:

   What|Removed |Added

URL||https://stackoverflow.com/q
   ||uestions/57477494/objdump-p
   ||roduces-wrong-branch-opcode
   ||-interpretation

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/24907] New: Objdump produces wrong branch opcode interpretation in some cases

2019-08-15 Thread itayzac89 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24907

Bug ID: 24907
   Summary: Objdump produces wrong branch opcode interpretation in
some cases
   Product: binutils
   Version: 2.33 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: itayzac89 at gmail dot com
  Target Milestone: ---

Bug explained in details in the stack overflow URL 

https://stackoverflow.com/questions/57477494/objdump-produces-wrong-branch-opcode-interpretation

Basically, objdump procude wrong branch opcode interpretation in some cases,
for example, see the following objdump line of a specific object file of a
specific function (func):


3c:   e03ab.n 78 


Now, the opcode e03a in the target system (ARMv6-M) says jump to the location
of PC + 0x78. A correct interpretation will be:


3c:   e03ab.n B4 


It happens each time the jump is between jumps, that are subject to relocation
like here:

38:   f7ff fffe   bl  0 
3c:   e03ab.n 78< PROBLEM IS HERE
3e:   f7ff fffe   bl  0 
or here

6a:   f7ff fffe   bl  0 
6e:   e021b.n 46   <--- ALSO HERE
70:   f7ff fffe   bl  0 

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils