From 45aa6e241e54b49e27fb0199842d3768c377d271 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 11 Jun 2003 17:12:06 +0000 Subject: Marshall M. Midden at brecis.com writes: The gnu ld and binutils for mips has a bug with relocation. It is possible for a relocation table to be created that is not able to be loaded correctly. We found this with the intersil wireless driver port. To enable a correctly created mips relocation table (either a .o, or ld -r) it is necessary to turn off one of the instruction re-scheduling passes. Specifically, on mips-gcc -fno-schedule-insns2 is needed. This is an FYI. The bug has been reported to the appropriate mailing lists. This patch is an effort to avoid this problem on mips. -Erik --- extra/Configs/Config.mips | 1 + extra/Configs/Config.mips.default | 1 + extra/Configs/Config.mipsel | 1 + extra/Configs/Config.mipsel.default | 1 + 4 files changed, 4 insertions(+) diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips index b8c9f2505..e0a1d2c15 100644 --- a/extra/Configs/Config.mips +++ b/extra/Configs/Config.mips @@ -13,6 +13,7 @@ config HAVE_ELF config ARCH_CFLAGS string + default "-fno-schedule-insns2" config ARCH_LDFLAGS string diff --git a/extra/Configs/Config.mips.default b/extra/Configs/Config.mips.default index b13a9d2bf..77a9fbfcb 100644 --- a/extra/Configs/Config.mips.default +++ b/extra/Configs/Config.mips.default @@ -6,6 +6,7 @@ # Target Architecture Features and Options # HAVE_ELF=y +ARCH_CFLAGS="-fno-schedule-insns2" UCLIBC_HAS_MMU=y UCLIBC_HAS_FLOATS=y HAS_FPU=y diff --git a/extra/Configs/Config.mipsel b/extra/Configs/Config.mipsel index b8c9f2505..e0a1d2c15 100644 --- a/extra/Configs/Config.mipsel +++ b/extra/Configs/Config.mipsel @@ -13,6 +13,7 @@ config HAVE_ELF config ARCH_CFLAGS string + default "-fno-schedule-insns2" config ARCH_LDFLAGS string diff --git a/extra/Configs/Config.mipsel.default b/extra/Configs/Config.mipsel.default index b13a9d2bf..77a9fbfcb 100644 --- a/extra/Configs/Config.mipsel.default +++ b/extra/Configs/Config.mipsel.default @@ -6,6 +6,7 @@ # Target Architecture Features and Options # HAVE_ELF=y +ARCH_CFLAGS="-fno-schedule-insns2" UCLIBC_HAS_MMU=y UCLIBC_HAS_FLOATS=y HAS_FPU=y -- cgit v1.2.3