Skip to contentSkip to conversation

um: Fix build error and kconfig for i386

PATCH Superseded Mickaël Salaün 3 participants 5 messages Dec 23, 2015 – Dec 25, 2015

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 um: Fix build error and kconfig for i386

Fix build error by selecting COREDUMP when X86_32 is selected:

arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference to dump_emit' arch/x86/um/built-in.o: In function elf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'

Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")
Cc Jeff Dike <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
---
 arch/x86/um/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/x86/um/Kconfig +1 -0
index ed56a1c4ae73..bb7cd8b38043 100644
@@ -26,6 +26,7 @@ config X86_32
 	select CLONE_BACKWARDS
 	select OLD_SIGSUSPEND3
 	select OLD_SIGACTION
+	select COREDUMP
 
 config X86_64
 	def_bool 64BIT
Signature · 7 lines
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#1 lore raw
Quoted 7 lines · Mickaël Salaün

Fix build error by selecting COREDUMP when X86_32 is selected:

arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference to dump_emit' arch/x86/um/built-in.o: In function elf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'

Quoted 9 lines
Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")
Cc Jeff Dike <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>

I suppose um doesn't care deeply about binary size, but ideally I would suggest changing arch/x86/um/Makefile to make elfcore.c compiled in when CONFIG_ELF_CORE rather than CONFIG_BINFMT_ELF.

Quoted 18 lines
 arch/x86/um/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/x86/um/Kconfig +1 -0
index ed56a1c4ae73..bb7cd8b38043 100644
@@ -26,6 +26,7 @@ config X86_32
 	select CLONE_BACKWARDS
 	select OLD_SIGSUSPEND3
 	select OLD_SIGACTION
+	select COREDUMP
 
 config X86_64
 	def_bool 64BIT
Signature · 1 line
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 18 lines · Josh Triplett
Quoted 7 lines · Mickaël Salaün

Fix build error by selecting COREDUMP when X86_32 is selected:

arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference to dump_emit' arch/x86/um/built-in.o: In function elf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'

Quoted 9 lines
Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")
Cc Jeff Dike <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
Quoted 3 lines

I suppose um doesn't care deeply about binary size, but ideally I would suggest changing arch/x86/um/Makefile to make elfcore.c compiled in when CONFIG_ELF_CORE rather than CONFIG_BINFMT_ELF.

That looks better! Since the first patch has been added to the mmots tree (but not yet in mmotm) I'll send a patch update instead of a new one reverting the first. I hope this is OK.

Regards,
Mickaël

#3 lore raw
Quoted 20 lines · Mickaël Salaün
Quoted 18 lines · Josh Triplett
Quoted 16 lines · Mickaël Salaün

Fix build error by selecting COREDUMP when X86_32 is selected:

arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference to dump_emit' arch/x86/um/built-in.o: In function elf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'

Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")
Cc Jeff Dike <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
Quoted 5 lines
Quoted 3 lines

I suppose um doesn't care deeply about binary size, but ideally I would suggest changing arch/x86/um/Makefile to make elfcore.c compiled in when CONFIG_ELF_CORE rather than CONFIG_BINFMT_ELF.

That looks better! Since the first patch has been added to the mmots tree (but not yet in mmotm) I'll send a patch update instead of a new one reverting the first. I hope this is OK.

-mm regularly replaces patches with newer versions, so that ought to be fine.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw

Am 25.12.2015 um 02:26 schrieb Josh Triplett:

Quoted 21 lines · Mickaël Salaün
Quoted 20 lines · Josh Triplett
Quoted 18 lines · Mickaël Salaün
Quoted 16 lines

Fix build error by selecting COREDUMP when X86_32 is selected:

arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference to dump_emit' arch/x86/um/built-in.o: In function elf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'

Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")
Cc Jeff Dike <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I suppose um doesn't care deeply about binary size, but ideally I would suggest changing arch/x86/um/Makefile to make elfcore.c compiled in when CONFIG_ELF_CORE rather than CONFIG_BINFMT_ELF.

That looks better! Since the first patch has been added to the mmots tree (but not yet in mmotm) I'll send a patch update instead of a new one reverting the first. I hope this is OK.

-mm regularly replaces patches with newer versions, so that ought to be fine.

Usually non-trivial UML stuff goes thought me. As Josh noted, just post an updated version of the patch. Either me or Andrew will pick it up.

Thanks,
//richard

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/