1
0

840-armv4_pass_fix-v4bx_to_ld.patch 778 B

12345678910111213141516171819
  1. --- a/gcc/config/arm/linux-eabi.h
  2. +++ b/gcc/config/arm/linux-eabi.h
  3. @@ -94,10 +94,15 @@
  4. #define MUSL_DYNAMIC_LINKER \
  5. "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1"
  6. +/* For armv4 we pass --fix-v4bx to linker to support EABI */
  7. +#undef TARGET_FIX_V4BX_SPEC
  8. +#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\
  9. + "|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}"
  10. +
  11. /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
  12. use the GNU/Linux version, not the generic BPABI version. */
  13. #undef LINK_SPEC
  14. -#define LINK_SPEC EABI_LINK_SPEC \
  15. +#define LINK_SPEC EABI_LINK_SPEC TARGET_FIX_V4BX_SPEC \
  16. LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
  17. LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)