Skip to content

Commit

Permalink
[MIPS] Remove '-mno-explicit-relocs' option when CONFIG_BUILD_ELF64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Oct 11, 2007
1 parent d87d0c9 commit 8c67316
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c67316

Please sign in to comment.