edata alignment

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

 




In arch/mips/kernel/head.S, there is this code in kernel_entry:

   la      t0, _edata
   sw      zero, (t0)

What guarantees that edata will be word aligned? I don't see a .ALIGN
directive in the ld.script so is it safe to assume that edata will
always be at least word aligned?  I've linked into the kernel a very
large ramdisk, and edata ends up being an odd address, causing a cpu
fault. 

Pete


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux