Hi,
This patchset results from the following thread we had a couple weeks
ago:
http://marc.theaimsgroup.com/?l=linux-mips&m=117000798317188&w=2
Once this patchset is applied, we do not need to configure
CONFIG_BUILD_ELF64 manually. Instead, the makefile should do the right
thing for us:
- It passes '-msym32' switch to gcc according to the platform's
load address.
- We can still force Kbuild to not use '-msym32' whatever the
value of the load address by passing "BUILD_ELF32=no" when
invoking make.
Patch #3 renames CONFIG_BUILD_ELF64 into CONFIG_64BIT_BUILD_ELF32. It
simplifies the places where it's used.
This patchset assumes that the compiler will fail if it doesn't
support '-msym32' switch. Therefore we needn't to test gcc's version
when testing CONFIG_64BIT_BUILD_ELF32 value.
Please, consider.
Franck
---
arch/mips/Kconfig | 15 ---------------
arch/mips/Makefile | 23 ++++++++++++++++++-----
include/asm-mips/page.h | 2 +-
include/asm-mips/pgtable-64.h | 2 +-
include/asm-mips/stackframe.h | 12 ++++++------
5 files changed, 26 insertions(+), 28 deletions(-)
|