Hello,

I'm reviving some ancient stuff and needed to assemble code for m68hc11 target (I'm going to add a new target for similar microcontroller, but it's a different story). I compiled binutils 2.29 for m68hc11 target on Fedora 26 x64 and tried this test program:

a1:
    jsr a2
    bra a2
    .skip 10
a2:
    nop

yet the objdump of the assembly shows me this:

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. The same for jmp if you try one. That leads me to a suspicion this target hasn't been tested and maintained for some time. Is m68hc11 still supported?

Marek


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

Reply via email to