mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[MIPS] Remove CONFIG_BUILD_ELF64.
This option is no longer usable with supported compilers. It will be
replaced by usage of -msym32 in a separate patch.
Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
219ac73a7a
commit
8145095cd8
12 changed files with 13 additions and 75 deletions
|
|
@ -70,18 +70,20 @@ CHECKFLAGS-$(CONFIG_CPU_LITTLE_ENDIAN) += -D__MIPSEL__
|
|||
|
||||
CHECKFLAGS = $(CHECKFLAGS-y)
|
||||
|
||||
ifdef CONFIG_BUILD_ELF64
|
||||
gas-abi = 64
|
||||
ld-emul = $(64bit-emul)
|
||||
vmlinux-32 = vmlinux.32
|
||||
vmlinux-64 = vmlinux
|
||||
else
|
||||
ifdef CONFIG_32BIT
|
||||
gas-abi = 32
|
||||
ld-emul = $(32bit-emul)
|
||||
vmlinux-32 = vmlinux
|
||||
vmlinux-64 = vmlinux.64
|
||||
endif
|
||||
|
||||
cflags-$(CONFIG_64BIT) += $(call cc-option,-mno-explicit-relocs)
|
||||
ifdef CONFIG_64BIT
|
||||
gas-abi = 64
|
||||
ld-emul = $(64bit-emul)
|
||||
vmlinux-32 = vmlinux.32
|
||||
vmlinux-64 = vmlinux
|
||||
|
||||
cflags-y += $(call cc-option,-mno-explicit-relocs)
|
||||
endif
|
||||
|
||||
#
|
||||
|
|
@ -630,7 +632,6 @@ endif
|
|||
ifdef CONFIG_SGI_IP27
|
||||
core-$(CONFIG_SGI_IP27) += arch/mips/sgi-ip27/
|
||||
cflags-$(CONFIG_SGI_IP27) += -Iinclude/asm-mips/mach-ip27
|
||||
ifdef CONFIG_BUILD_ELF64
|
||||
ifdef CONFIG_MAPPED_KERNEL
|
||||
load-$(CONFIG_SGI_IP27) += 0xc00000004001c000
|
||||
OBJCOPYFLAGS := --change-addresses=0x3fffffff80000000
|
||||
|
|
@ -639,16 +640,6 @@ else
|
|||
load-$(CONFIG_SGI_IP27) += 0xa80000000001c000
|
||||
OBJCOPYFLAGS := --change-addresses=0x57ffffff80000000
|
||||
endif
|
||||
else
|
||||
ifdef CONFIG_MAPPED_KERNEL
|
||||
load-$(CONFIG_SGI_IP27) += 0xffffffffc001c000
|
||||
OBJCOPYFLAGS := --change-addresses=0xc000000080000000
|
||||
dataoffset-$(CONFIG_SGI_IP27) += 0x01000000
|
||||
else
|
||||
load-$(CONFIG_SGI_IP27) += 0xffffffff8001c000
|
||||
OBJCOPYFLAGS := --change-addresses=0xa800000080000000
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
CONFIG_BUILD_ELF64=y
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -234,7 +234,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
CONFIG_BUILD_ELF64=y
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -224,7 +224,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
CONFIG_BINFMT_MISC=y
|
||||
# CONFIG_BUILD_ELF64 is not set
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -220,7 +220,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
# CONFIG_BUILD_ELF64 is not set
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -223,7 +223,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
# CONFIG_BUILD_ELF64 is not set
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ CONFIG_MMU=y
|
|||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
# CONFIG_BUILD_ELF64 is not set
|
||||
CONFIG_MIPS32_COMPAT=y
|
||||
CONFIG_COMPAT=y
|
||||
CONFIG_MIPS32_O32=y
|
||||
|
|
|
|||
|
|
@ -447,21 +447,10 @@ static inline void resource_init(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
#if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64)
|
||||
/*
|
||||
* The 64bit code in 32bit object format trick can't represent
|
||||
* 64bit wide relocations for linker script symbols.
|
||||
*/
|
||||
code_resource.start = CPHYSADDR(&_text);
|
||||
code_resource.end = CPHYSADDR(&_etext) - 1;
|
||||
data_resource.start = CPHYSADDR(&_etext);
|
||||
data_resource.end = CPHYSADDR(&_edata) - 1;
|
||||
#else
|
||||
code_resource.start = virt_to_phys(&_text);
|
||||
code_resource.end = virt_to_phys(&_etext) - 1;
|
||||
data_resource.start = virt_to_phys(&_etext);
|
||||
data_resource.end = virt_to_phys(&_edata) - 1;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Request address space for all standard RAM.
|
||||
|
|
|
|||
|
|
@ -951,7 +951,6 @@ build_get_pmde64(u32 **p, struct label **l, struct reloc **r,
|
|||
/* No i_nop needed here, since the next insn doesn't touch TMP. */
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
# ifdef CONFIG_BUILD_ELF64
|
||||
/*
|
||||
* 64 bit SMP running in XKPHYS has smp_processor_id() << 3
|
||||
* stored in CONTEXT.
|
||||
|
|
@ -962,18 +961,6 @@ build_get_pmde64(u32 **p, struct label **l, struct reloc **r,
|
|||
i_daddu(p, ptr, ptr, tmp);
|
||||
i_dmfc0(p, tmp, C0_BADVADDR);
|
||||
i_ld(p, ptr, rel_lo(pgdc), ptr);
|
||||
# else
|
||||
/*
|
||||
* 64 bit SMP running in compat space has the lower part of
|
||||
* &pgd_current[smp_processor_id()] stored in CONTEXT.
|
||||
*/
|
||||
if (!in_compat_space_p(pgdc))
|
||||
panic("Invalid page directory address!");
|
||||
|
||||
i_dmfc0(p, ptr, C0_CONTEXT);
|
||||
i_dsra(p, ptr, ptr, 23);
|
||||
i_ld(p, ptr, 0, ptr);
|
||||
# endif
|
||||
#else
|
||||
i_LA_mostly(p, ptr, pgdc);
|
||||
i_ld(p, ptr, rel_lo(pgdc), ptr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue