sh-elf Assembler doesn't give warning for misaligned data

Nutan Nutan@KPITCummins.com
Thu Nov 20 04:39:00 GMT 2003
Hi,
 
For code below, the sh-elf assembler doesn't give warning about misaligned data for "foo". 

 	 .section .text
        mov.l foo, r0
 
bar:
       .byte 1
foo:
       .long 0x12345678

 
It silently generates wrong code if one doesn't give .align directive.
 
The sh-coff assembler does give the warning.
 
Regards,
Nutan



More information about the Binutils mailing list