Don't try to look back in the instruction stream beyound it's start
if an object file starts with a branch/call/jump instruction creating a branch delay slot at offset < 8.
This commit is contained in:
parent
dc1d6c5fbd
commit
855375b3f6
2
gnu/dist/toolchain/opcodes/sparc-dis.c
vendored
2
gnu/dist/toolchain/opcodes/sparc-dis.c
vendored
@ -698,7 +698,7 @@ print_insn_sparc (memaddr, info)
|
||||
or %o1, %lo(_foo), %o1
|
||||
*/
|
||||
|
||||
if (is_delayed_branch (prev_insn))
|
||||
if (memaddr >= 8 && is_delayed_branch (prev_insn))
|
||||
{
|
||||
errcode = (*info->read_memory_func)
|
||||
(memaddr - 8, buffer, sizeof (buffer), info);
|
||||
|
Loading…
Reference in New Issue
Block a user