alignment warning

Andrew Haley aph-gcc@littlepinkcloud.COM
Wed Aug 8 09:04:00 GMT 2007


K,Av(Bvesdi Gy,Av(Brgy writes:

 > I am using avr-gcc 4.2.1 and sometimes I got the following message:
 > 
 > warning: alignment of $,1rx(BSerial::_ZTV6Serial$,1ry(B is greater than maximum object 
 > file alignment.  Using 1
 > 
 > I don't know what it is anyway and how could it be avoided. However, the 
 > generated code is good.


Without seeing the actual code that casues this warning?  No.  We're
clever, but we aren't telepathic.  :-)

 > Any idea?

The problem is caused by the fact that the compiler (or assembler;
could be either) generates a declaration that $,1rx(BSerial::_ZTV6Serial$,1ry(B
must be aligned at a particular boundary, but your linker doesn't
support such alignment.

Andrew.



More information about the Gcc-help mailing list