On Sep 16 2017, Marek Pietrzak <marekp...@gmail.com> wrote:

> test.o:     file format elf32-m68hc11
>
> Disassembly of section .text:
>
> 00000000 <a1>:
>    0:    bd 00 00        jsr    0x0 <a1>
>    3:    20 0a           bra    0xf <a2>
>     ...
>
> 0000000f <a2>:
>    f:    01              nop
>
> As you can see bra is generated correctly, but jsr is incorrect.

Look at the relocations.


test.o:     file format elf32-m68hc11


Disassembly of section .text:

00000000 <a1>:
   0:   bd 00 00        jsr     0x0 <a1>
                        0: R_M68HC11_RL_JUMP    *ABS*
                        1: R_M68HC11_16 a2
   3:   20 0a           bra     0xf <a2>
                        3: R_M68HC11_RL_JUMP    *ABS*
        ...

0000000f <a2>:
   f:   01              nop

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to