[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] binutils/gas patch for ldi adiw ldd UPDATE
From: |
Dmitry K. |
Subject: |
Re: [avr-gcc-list] binutils/gas patch for ldi adiw ldd UPDATE |
Date: |
Thu, 25 Nov 2004 08:35:05 +1000 |
User-agent: |
KMail/1.5 |
Hi Rudolph, hi all.
Update is true, thank.
But there is a misprint into patch for elf32-avr.c .
Look:
+ case R_AVR_6_ADIW:
+ contents += rel->r_offset;
+ srel = (bfd_signed_vma) relocation + rel->r_addend;
...
+ x = bfd_get_16 (input_bfd, contents);
+ x = (x & 0xff30) | (x & 0xf) | ((x & 0x30)<<2);
+ bfd_put_16 (input_bfd, x, contents);
+ break;
Must be?
+ x = (x & 0xff30) | (srel & 0xf) | ((srel & 0x30)<<2);
The same is in `case R_AVR_6'.
Thanks.