Fix offset calculation when branch target is more then 2Gb away.
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
                        type = BRASL_EXPOLINE;  /* brasl instruction */
                else
                        continue;
-               thunk = instr + (*(int *)(instr + 2)) * 2;
+               thunk = instr + (long)(*(int *)(instr + 2)) * 2;
                if (thunk[0] == 0xc6 && thunk[1] == 0x00)
                        /* exrl %r0,<target-br> */
-                       br = thunk + (*(int *)(thunk + 2)) * 2;
+                       br = thunk + (long)(*(int *)(thunk + 2)) * 2;
                else
                        continue;
                if (br[0] != 0x07 || (br[1] & 0xf0) != 0xf0)