840-armv4_pass_fix-v4bx_to_ld.patch 963 B

12345678910111213141516171819202122232425262728
  1. commit 7edc8ca5456d9743dd0075eb3cc5b04f4f24c8cc
  2. Author: Imre Kaloz <kaloz@openwrt.org>
  3. Date: Wed Feb 2 19:34:36 2011 +0000
  4. add armv4 fixup patches
  5. SVN-Revision: 25322
  6. --- a/gcc/config/arm/linux-eabi.h
  7. +++ b/gcc/config/arm/linux-eabi.h
  8. @@ -88,10 +88,15 @@
  9. #define MUSL_DYNAMIC_LINKER \
  10. "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1"
  11. +/* For armv4 we pass --fix-v4bx to linker to support EABI */
  12. +#undef TARGET_FIX_V4BX_SPEC
  13. +#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\
  14. + "|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}"
  15. +
  16. /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
  17. use the GNU/Linux version, not the generic BPABI version. */
  18. #undef LINK_SPEC
  19. -#define LINK_SPEC EABI_LINK_SPEC \
  20. +#define LINK_SPEC EABI_LINK_SPEC TARGET_FIX_V4BX_SPEC \
  21. LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
  22. LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)