[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-as: .byte SYMA - SYMB?
From: |
Dmitry K. |
Subject: |
Re: [avr-gcc-list] avr-as: .byte SYMA - SYMB? |
Date: |
Thu, 29 May 2003 09:13:04 +1100 |
User-agent: |
KMail/1.5 |
Directive ".byte SYMA-SYMB" not work,
if there are:
.space, .skip, .org ...
directives between SYMA and SYMB.
Result is: "illegal relocation size: 1".
For example,
SYMA: .space 10
SYMB: ldi r16,1
.byte SYMA - SYMB
not work, but:
SYMA: .rept 10
.byte 0
.endr
SYMB: ldi r16,1
.byte SYMA - SYMB
work fine.
Best wishes.
28 May 2003 19:29 Joerg Wunsch wrote:
> "Dmitry K." <address@hidden> wrote:
> > Using
> > .byte SYMA-SYMB
> > .align 1
> > work OK with binutils-030428 .
> > Perhaps, problem was: odd address after .byte .
>
> Spasibo, Dmitry.
>
> However, for me, it still doesn't help. I get the "illegal relocation
> size" message in the line with the .byte instruction already.
>
> My binutils is plain 2.13.2.1 though, i'll try a newer version to see
> whether that will help.