This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]