Hi,

On 03/24/2013 06:01 PM, Leif Lindholm wrote:
> === modified file 'conf/Makefile.common'
> --- conf/Makefile.common      2013-03-03 14:57:30 +0000
> +++ conf/Makefile.common      2013-03-24 11:00:29 +0000
> @@ -37,6 +37,13 @@
>    CFLAGS_PLATFORM += -mno-app-regs
>    LDFLAGS_PLATFORM = -Wl,-melf64_sparc -mno-relax
>  endif
> +if COND_arm
> +# Image entry point always in ARM (A32) state - ensure proper functionality 
> if
> +# the rest is built for the Thumb (T32) state.
> +  CFLAGS_PLATFORM += -mthumb-interwork -mno-unaligned-access -mlong-calls
> +  CCASFLAGS_PLATFORM = -Wa,-mimplicit-it=thumb

The -mimplicit-it=thumb assembler option is generally frowned upon and
is used mostly to convert existing pieces of code from ARM to Thumb
encoding.
Since you are writing new code, it's better to avoid this option and
manually insert IT instructions in the assembly where appropriate.

> +  LDFLAGS_PLATFORM = -Wl,--wrap=__clear_cache
> +endif
>  
>  # Other options
>  

--Francesco



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to