2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00

Yep, -mno-unaligned-access is definitely needed with a GCC 4.7

ToolChain, the kernel used on FW 2.x is too old to handle unaligned
accesses properly.
This commit is contained in:
NiLuJe 2012-10-03 15:57:52 +02:00 committed by Qingping Hou
parent 24b9678dc6
commit 42e66cc605

View File

@ -36,7 +36,7 @@ BASE_CFLAGS:=-O2 -ffast-math -pipe -fomit-frame-pointer
# Use this for debugging: # Use this for debugging:
#BASE_CFLAGS:=-O0 -g #BASE_CFLAGS:=-O0 -g
# Misc GCC tricks to ensure backward compatibility with the K2, even when using a fairly recent TC (Linaro/MG). # Misc GCC tricks to ensure backward compatibility with the K2, even when using a fairly recent TC (Linaro/MG).
# NOTE: Right now, -mno-unaligned-access is not needed, but it probably will (for FW 2.x) be once MG moves to GCC 4.7. # NOTE: -mno-unaligned-access is needed for Linaro 4.6/4.7 and GCC 4.7 TC, or weird crap happens on FW 2.x. We unfortunately can't set it by default, since it's a new flag.
ARM_BACKWARD_COMPAT_CFLAGS:=-fno-stack-protector -U_FORTIFY_SOURCE -D_GNU_SOURCE -fno-finite-math-only ARM_BACKWARD_COMPAT_CFLAGS:=-fno-stack-protector -U_FORTIFY_SOURCE -D_GNU_SOURCE -fno-finite-math-only
ARM_BACKWARD_COMPAT_CXXFLAGS:=-fno-use-cxa-atexit ARM_BACKWARD_COMPAT_CXXFLAGS:=-fno-use-cxa-atexit
ARM_ARCH:=-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -marm ARM_ARCH:=-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -marm