[nhc-bugs] build failure

Ian Lynagh igloo at earth.li
Sun Jun 13 10:16:24 EDT 2004


On Sun, Jun 13, 2004 at 02:27:52PM +0100, Malcolm Wallace wrote:
> Ian Lynagh <igloo at earth.li> writes:
> 
> > Just had a look on mips (one of the arches where it currently matters
> > for me) and both 3.2 and 3.3 are generating ".align 2" rather than
> > ".align 4". As far as I know this hasn't caused a problem in the past.
> > Have I just been lucky or is this also fine? Or is it something that
> > should be fixed?
> 
> I imagine that, since 'startLabel' is always the first symbol to be
> defined in any object file, it will naturally get a 4-byte alignment
> anyway thanks to the linker, regardless of whether the compiler places
> an ".align 2" or ".align 4" in front of it.
> 
> But yes, technically it should probably be .align 4.

It's actually every .align, not just the first one, that is .align 2, so
I assume they should all be changed.

Is there a reason why you don't do
    sed "s/\.align [0-9]\+/.align 4/"
rather than fixing them on a case-by-case basis?


Thanks
Ian



More information about the Nhc-bugs mailing list