um: Fix build error and kconfig for i386
Subsystems (3)
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'
--- arch/x86/um/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/x86/um/Kconfig +1 -0
@@ -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/
Quoted 7 lines · Mickaël Salaün
Fix build error by selecting COREDUMP when
X86_32is selected:
arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference todump_emit' arch/x86/um/built-in.o: In functionelf_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")Signed-off-by Mickaël Salaün <[email protected]>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@@ -26,6 +26,7 @@ config X86_32 select CLONE_BACKWARDS select OLD_SIGSUSPEND3 select OLD_SIGACTION + select COREDUMP config X86_64 def_bool 64BITSignature · 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/
Quoted 18 lines · Josh Triplett
Quoted 7 lines · Mickaël Salaün
Fix build error by selecting COREDUMP when
X86_32is selected:
arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference todump_emit' arch/x86/um/built-in.o: In functionelf_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")Signed-off-by Mickaël Salaün <[email protected]>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/Makefileto makeelfcore.ccompiled in whenCONFIG_ELF_CORErather thanCONFIG_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
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_32is selected:
arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference todump_emit' arch/x86/um/built-in.o: In functionelf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")Signed-off-by Mickaël Salaün <[email protected]>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/Makefileto makeelfcore.ccompiled in whenCONFIG_ELF_CORErather thanCONFIG_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/
Richard Weinberger
maintainerAm 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_32is selected:
arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs':
(.text+0x3e62): undefined reference todump_emit' arch/x86/um/built-in.o: In functionelf_core_write_extra_data':
(.text+0x3eef): undefined reference to `dump_emit'Fixes 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT")Signed-off-by Mickaël Salaün <[email protected]>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/Makefileto makeelfcore.ccompiled in whenCONFIG_ELF_CORErather thanCONFIG_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/