Re: unaligned accesses in apply_relocate_add

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

 



> On Wed, Aug 26, 2009 at 04:41:20PM +0200, Artem Alimarine wrote:
> > One point is that in the function apply_relocate_add a 4-byte aligned  
> > address is created:
> >
> > 627                dot = (Elf64_Addr)loc & ~0x03;
> > 628                loc64 = (Elf64_Xword *)loc;
> >
> > and used as a 64-bit location
> >
> > 711                case R_PARISC_DIR64:
> > 712                        /* 64-bit effective address */
> > 713                        *loc64 = val + addend;
> > 714                        break;
> >
> > So, 8-byte word is read with a 4-byte alignment.
> 
> Perhaps this is expected to be an 8byte address pointing at a 4-byte word?
> (and it's a bug that ist's not)

No, R_PARISC_DIR64 is a 64-bit reloacation.

Dave
-- 
J. David Anglin                                  dave.anglin@xxxxxxxxxxxxxx
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux