This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH SH] Error: unaligned opcodes detected in executable segment


Christian Bruel <christian.bruel@st.com> 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
> .L4:
>         .byte   .L3-.L5
>         .byte   .L10-.L5
>         .byte   .L7-.L5
>         .byte   .L8-.L5
>         .byte   .L9-.L5
> .L3:
>          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.

OK.

Regards,
	kaz


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