[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is m68hc11 target still supported by gas?
From: |
Andreas Schwab |
Subject: |
Re: Is m68hc11 target still supported by gas? |
Date: |
Sat, 16 Sep 2017 20:15:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
On Sep 16 2017, Marek Pietrzak <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."