This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
sh-elf Assembler doesn't give warning for misaligned data
- From: "Nutan" <Nutan at KPITCummins dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Thu, 20 Nov 2003 10:07:41 +0530
- Subject: 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