]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Compat: Fix binfmt_elf build errors.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 08:21:27 +0000 (10:21 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jun 2013 19:26:46 +0000 (21:26 +0200)
commit921508aadcefb55490cd9e958d444b48b7833788
tree15f85cdc149b2791384dc6e8e8aa6f1458420163
parente07126dfa9788aaa4294010d937be0ddf3ff50e5
MIPS: Compat: Fix binfmt_elf build errors.

CONFIG_MIPS32_N32=y but CONFIG_BINFMT_ELF disabled results in the following
linker errors:

arch/mips/built-in.o: In function `elf_core_dump':
binfmt_elfn32.c:(.text+0x23dbc): undefined reference to `elf_core_extra_phdrs'
binfmt_elfn32.c:(.text+0x246e4): undefined reference to `elf_core_extra_data_size'
binfmt_elfn32.c:(.text+0x248d0): undefined reference to `elf_core_write_extra_phdrs'
binfmt_elfn32.c:(.text+0x24ac4): undefined reference to `elf_core_write_extra_data'

CONFIG_MIPS32_O32=y but CONFIG_BINFMT_ELF disabled results in the following
linker errors:

arch/mips/built-in.o: In function `elf_core_dump':
binfmt_elfo32.c:(.text+0x28a04): undefined reference to `elf_core_extra_phdrs'
binfmt_elfo32.c:(.text+0x29330): undefined reference to `elf_core_extra_data_size'
binfmt_elfo32.c:(.text+0x2951c): undefined reference to `elf_core_write_extra_phdrs'
binfmt_elfo32.c:(.text+0x29710): undefined reference to `elf_core_write_extra_data'

Fixed by building kernel/elfcore.o CONFIG_MIPS32_N32 and CONFIG_MIPS32_O32.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
fs/Kconfig.binfmt
kernel/Makefile