[Tfug] gnu ld

Robert Hunter hunter at tfug.org
Fri Aug 11 15:53:17 MST 2006


> At 02:09 PM 8/11/2006 -0700, you wrote:
>>There hopefully is some way to declare the alignment of variables to
>>byte/word/doubleword hardware boundaries that will solve this.  Seems
>>like there is some implicit declaration of hardware alignment happening.
>>Possibly some slight rearrangement of your common variables may solve this.
>>
>>OTOH there may be no problem if the variable values are being stored
>>from the side with the smaller alignment.
>
> Probably is, but I don't want to muck about in the blind.  I suspect that
> since things link just fine when everything's compiled as one file that
> it's a hand-off problem between the Lahey compiler and gnu ld that is tied
> to how the compiler deals with blockdata routines.  Sounds like a bug to me.
>
Sounds like you already have this under control, but I think it's interesting that ld is giving the warning.  Whatever
'X' is, ld seems to think it should aligned on a 16-byte ( or 128-bit ) boundary.

-- 
Rob




More information about the tfug mailing list