Skip to contentSkip to conversation

ia64: Fix build error with !COREDUMP

PATCH Superseded Krzysztof Kozlowski 1 participant 2 messages Jun 4, 2020 – Jul 7, 2020 Stable branch

lore
Share & tools
lore
#0 lore raw

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'

Fixes 1fcccbac89f5 ("elf coredump: replace ELF_CORE_EXTRA_* macros by functions")

---

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
index 1a8df6669eee..18d6008b151f 100644
@@ -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
#1 lore raw
Quoted 13 lines · Krzysztof Kozlowski

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'

Fixes 1fcccbac89f5 ("elf coredump: replace ELF_CORE_EXTRA_* macros by functions")
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