diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-02-15 06:06:47 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:45:58 -0400 |
commit | 8c67316e706cabc2145d6c8e97f0bd8f2a86d8a1 (patch) | |
tree | fbb8bed99999f62cf66d3804df10ca148eb3a95f | |
parent | d87d0c930a1591617e4c7c78296b4ba029150188 (diff) |
[MIPS] Remove '-mno-explicit-relocs' option when CONFIG_BUILD_ELF64
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>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 32c1c8fb6f98..d5d5831b6e24 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -60,9 +60,7 @@ vmlinux-32 = vmlinux.32 | |||
60 | vmlinux-64 = vmlinux | 60 | vmlinux-64 = vmlinux |
61 | 61 | ||
62 | cflags-y += -mabi=64 | 62 | cflags-y += -mabi=64 |
63 | ifdef CONFIG_BUILD_ELF64 | 63 | ifndef CONFIG_BUILD_ELF64 |
64 | cflags-y += $(call cc-option,-mno-explicit-relocs) | ||
65 | else | ||
66 | cflags-y += $(call cc-option,-msym32) | 64 | cflags-y += $(call cc-option,-msym32) |
67 | endif | 65 | endif |
68 | endif | 66 | endif |