From 5d7775c6dfa8f9b2ae313c9493525d54a2d04b38 Mon Sep 17 00:00:00 2001 From: Duane Sand Date: Wed, 16 Jul 2014 12:29:34 -0700 Subject: [PATCH] [MIPS] Allow united mipsel and mips64el gcc toolchain Explicitly tell 32-bit links that they are doing 32-bit links. This is needed when using united 32-bit and 64-bit toolchains. This is harmless when using older separate 32-only toolchains. (cherry picked from commit f541650828f75b3dab22c9c0caab845be78b80fc) Change-Id: I8df0ee7d36c6409458e18bea4e0e8b132edf77dc --- libc/arch-mips/mips.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/arch-mips/mips.mk b/libc/arch-mips/mips.mk index 0a3718bc4..5705c8a95 100644 --- a/libc/arch-mips/mips.mk +++ b/libc/arch-mips/mips.mk @@ -83,3 +83,6 @@ libc_crt_target_crtbegin_so_file_mips := \ libc_crt_target_so_cflags_mips := \ -fPIC + +libc_crt_target_ldflags_mips := \ + -melf32ltsmip