| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 1/3] Remove '-mno-explicit-relocs' option when CONFIG_BUILD_ELF64 |
| From: | Franck Bui-Huu <vagabon.xyz@gmail.com> |
| Date: | Tue, 13 Feb 2007 10:18:07 +0100 |
| Cc: | linux-mips@linux-mips.org, anemo@mba.ocn.ne.jp, macro@linux-mips.org |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=poWLTNYSO/RAdSB5p00e+dbVS++c15WNQCQXcJdFoMowNJOs+VTML9ffhax72jhxkYyaFMBeQw4cG9q9upy4b2ptY6HO4CazBdxYwT/wget10oIsNZZI7XzhXBBXYtcjhAxo10MYd2TzraRAxa0LWoX0KcdDob7HW7nEiGPXtPg= |
| In-reply-to: | <1171358289786-git-send-email-fbuihuu@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1171358289786-git-send-email-fbuihuu@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Franck Bui-Huu <fbuihuu@gmail.com> This patch removes '-mno-explicit-relocs' usage when CONFIG_BUILD_ELF64 is set since this option was only required with the old hack to truncate addresses at the assembly level where "-mabi=64 -Wa,-mabi=32" was used. This should yield a small code size improvement for inline assembly, where the R constraint is used. The idea is coming from Maciej <macro@linux-mips.org>. Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> --- arch/mips/Makefile | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index c68b5d3..4240ca1 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -60,9 +60,7 @@ vmlinux-32 = vmlinux.32 vmlinux-64 = vmlinux cflags-y += -mabi=64 -ifdef CONFIG_BUILD_ELF64 -cflags-y += $(call cc-option,-mno-explicit-relocs) -else +ifndef CONFIG_BUILD_ELF64 cflags-y += $(call cc-option,-msym32) endif endif -- 1.4.4.3.ge6d4 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [RFC] Kill CONFIG_BUILD_ELF64 from Kconfig, Franck Bui-Huu |
|---|---|
| Next by Date: | [PATCH 2/3] Automatically set CONFIG_BUILD_ELF64, Franck Bui-Huu |
| Previous by Thread: | [RFC] Kill CONFIG_BUILD_ELF64 from Kconfig, Franck Bui-Huu |
| Next by Thread: | [PATCH 2/3] Automatically set CONFIG_BUILD_ELF64, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |