bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is m68hc11 target still supported by gas?


From: Marek Pietrzak
Subject: Re: Is m68hc11 target still supported by gas?
Date: Sat, 16 Sep 2017 21:23:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 09/16/2017 08:15 PM, Andreas Schwab wrote:
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.

Right, ld fixes the relocs. Thanks for the tip.

Marek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]