ia64: Fix build error with !COREDUMP
PATCH 1/1 ia64: Fix build error with !COREDUMP
Fix linkage error when CONFIG_BINFMT_ELF is selected but CONFIG_COREDUMP is not:
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs':
elfcore.c:(.text+0x172): undefined reference to `dump_emit'
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data':
elfcore.c:(.text+0x2b2): undefined reference to `dump_emit'
---
Please let kbuild test it for a while before applying. I built it only on few configurations.
This is similar fix to commit 42d91f612c87 ("um: Fix build error and kconfig for i386") although I put different fixes tag - the commit which introduced this part of code.
--- arch/ia64/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/ia64/kernel/Makefile +1 -1
@@ -41,7 +41,7 @@ obj-y += esi_stub.o # must be in kernel proper endif obj-$(CONFIG_INTEL_IOMMU) += pci-dma.o -obj-$(CONFIG_BINFMT_ELF) += elfcore.o +obj-$(CONFIG_ELF_CORE) += elfcore.o # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state. CFLAGS_traps.o += -mfixed-rangeò-f5,f16-f31
Signature · 1 line
2.17.1
Quoted 13 lines · Krzysztof Kozlowski
Fix linkage error when
CONFIG_BINFMT_ELFis selected butCONFIG_COREDUMPis not:ia64-linux-ld:
arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs':
elfcore.c:(.text+0x172): undefined reference to `dump_emit'
ia64-linux-ld:arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data':
elfcore.c:(.text+0x2b2): undefined reference to `dump_emit'Cc <[email protected]>Fixes 1fcccbac89f5 ("elf coredump: replace ELF_CORE_EXTRA_* macros by functions")Reported-by kernel test robot <[email protected]>Signed-off-by Krzysztof Kozlowski <[email protected]>
Quoted 8 lines
---
Please let kbuild test it for a while before applying. I built it only on few configurations.
This is similar fix to commit
42d91f612c87("um: Fix build error and kconfig for i386") although I put different fixes tag - the commit which introduced this part of code.
Kernel-test-robot did not complain anymore so I think build tests passed.
Any comments here?
Best regards,
Krzysztof