This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH SH] Error: unaligned opcodes detected in executable segment
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: christian dot bruel at st dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Apr 2013 08:20:36 +0900 (JST)
- Subject: Re: [PATCH SH] Error: unaligned opcodes detected in executable segment
- References: <51642702 dot 5090204 at st dot com>
Christian Bruel <firstname.lastname@example.org> wrote:
> This patch fixes label alignments after a ADDR_DIFF_VEC with byte
> offsets. The bug occurs with building the libgcc for a sh-elf target.
> See a reduced case here. The funny thing is that the assembly error
> given in Subject appears only on a debug section when compiled with -g,
> thus the emitted code without -g:
> .align 2
> .byte .L3-.L5
> .byte .L10-.L5
> .byte .L7-.L5
> .byte .L8-.L5
> .byte .L9-.L5
> mov.l .L13,r1
> assembles silently, although unaligned...
> OK for trunk ? The failure occurs with the libgcc, so tested by allowing
> the sh-elf build to complete.