Skip to contentSkip to conversation

Can't compile 2.6.0-test4

PATCH In review Michal Semler (volny.cz) 6 participants 14 messages Aug 25, 2003 – Aug 30, 2003

Subsystems (10)
Arm (32-bit) MIPS s390 SuperH +6 more subsystems
lore
Share & tools
lore
#0 lore raw

Hi,

I tried compile 2.6.0-test4, but I got this error messages:
gcc-3.3, Debian Woody with bunk debs

arch/i386/mm/built-in.o(.init.text+0x4bf): In function `mem_init':
: undefined reference to kclist_add' arch/i386/mm/built-in.o(.init.text+0x4ec): In function mem_init':
: undefined reference to `kclist_add'
make: *** [.tmp_vmlinux1] Error 1

.config included

Michal

#1 lore raw

2.6.0-test4: CONFIG_KCORE_AOUT doesn't compile

Quoted 5 lines · Michal Semler (volny.cz)

Hi,

I tried compile 2.6.0-test4, but I got this error messages:
gcc-3.3, Debian Woody with bunk debs

Quoted 7 lines

arch/i386/mm/built-in.o(.init.text+0x4bf): In function `mem_init':
: undefined reference to kclist_add' arch/i386/mm/built-in.o(.init.text+0x4ec): In function mem_init':
: undefined reference to `kclist_add'
make: *** [.tmp_vmlinux1] Error 1

.config included

@Michal:

# CONFIG_KCORE_ELF is not set
CONFIG_KCORE_AOUT=y

I assume you want to change
Executable file formats
Kernel core (/proc/kcore) format
to
ELF

@all:

Is there any specific reason to keep CONFIG_KCORE_AOUT or is it time to remove this option?

Quoted 1 line

Michal

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw

Re: 2.6.0-test4: CONFIG_KCORE_AOUT doesn't compile

Thanks for helping me.
Kernel got compiled now, but not boot.

It gets into maintaince wanting root password and then telling me:

QM_MODULES - function not implemented.

What need I switch on to get modules working?

Michal

Dne út 26. srpna 2003 12:51 jste napsal(a):

Quoted 38 lines · Michal Semler (volny.cz)
Quoted 8 lines

Hi,

I tried compile 2.6.0-test4, but I got this error messages:
gcc-3.3, Debian Woody with bunk debs

arch/i386/mm/built-in.o(.init.text+0x4bf): In function `mem_init':
: undefined reference to `kclist_add'

Quoted 6 lines

arch/i386/mm/built-in.o(.init.text+0x4ec): In function `mem_init':
: undefined reference to `kclist_add'

make: *** [.tmp_vmlinux1] Error 1

.config included

@Michal:

# CONFIG_KCORE_ELF is not set
CONFIG_KCORE_AOUT=y

I assume you want to change
Executable file formats
Kernel core (/proc/kcore) format
to
ELF

@all:

Is there any specific reason to keep CONFIG_KCORE_AOUT or is it time to remove this option?

Quoted 1 line

Michal

cu
Adrian

#3 lore raw

Re: 2.6.0-test4: CONFIG_KCORE_AOUT doesn't compile

Quoted 8 lines · Michal Semler (volny.cz)

Thanks for helping me.
Kernel got compiled now, but not boot.

It gets into maintaince wanting root password and then telling me:

QM_MODULES - function not implemented.

What need I switch on to get modules working?

Did you install the module-init-tools package?

Quoted 1 line

Michal

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#4 lore raw

2.6.0-test4 and /etc/modules.conf

Hi,

I have in /etc/modules.conf defined which modules to use. 2.4.22 uses it well, but 2.6.0-test4 doesn't.

I tried add these defs into /etc/modprobe.d/aliases but without success.

When I by hand call for example modprobe hid module is loaded and device works.

Can somebody help me?

Michal

#5 lore raw

Re: 2.6.0-test4 and /etc/modules.conf

Quoted 6 lines · Michal Semler (volny.cz)

Hi,

I have in /etc/modules.conf defined which modules to use. 2.4.22 uses it well, but 2.6.0-test4 doesn't.

I tried add these defs into /etc/modprobe.d/aliases but without success.

In 2.6, the file /etc/modprobe.conf is used. When you use Red Hat, you can install their modutils package from RawHide, that creates that file from your /etc/modules.conf file.

There is probably some util around that creates the file for you. This issue is documented in the FAQ in the modutils source.

Quoted 2 lines

When I by hand call for example modprobe hid module is loaded and device works.

This means that you already got the proper modutils version installed.

Regards,

Bas.

#6 lore raw

Re: 2.6.0-test4 and /etc/modules.conf

Dne út 26. srpna 2003 18:00 jste napsal(a):

Quoted 11 lines
Quoted 6 lines · Michal Semler (volny.cz)

Hi,

I have in /etc/modules.conf defined which modules to use. 2.4.22 uses it well, but 2.6.0-test4 doesn't.

I tried add these defs into /etc/modprobe.d/aliases but without success.

In 2.6, the file /etc/modprobe.conf is used. When you use Red Hat, you can install their modutils package from RawHide, that creates that file from your /etc/modules.conf file.

Hmm I use Debian - is there any util for this distro?

Quoted 12 lines

There is probably some util around that creates the file for you. This issue is documented in the FAQ in the modutils source.

Quoted 2 lines

When I by hand call for example modprobe hid module is loaded and device works.

This means that you already got the proper modutils version installed.

Regards,

Bas.

#7 lore raw

Re: 2.6.0-test4 and /etc/modules.conf

* Michal Semler (volny.cz) <[email protected]>:

Hi,

Quoted 5 lines
Quoted 3 lines

In 2.6, the file /etc/modprobe.conf is used. When you use Red Hat, you can install their modutils package from RawHide, that creates that file from your /etc/modules.conf file.

Hmm I use Debian - is there any util for this distro?

Inside the module-init-tools package, there's:

/usr/share/doc/module-init-tools/examples/generate-modprobe.conf.gz

Regards,
Emmanuele.

Signature · 2 lines
Emmanuele Bassi (Zefram)           [ http://digilander.libero.it/ebassi/ ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
#8 lore raw

Re: 2.6.0-test4 and /etc/modules.conf

In reply to Michal Semler (volny.cz)
Quoted 2 lines · Michal Semler (volny.cz)

I have in /etc/modules.conf defined which modules to use. 2.4.22 uses it well, but 2.6.0-test4 doesn't.

I assume you are using the corresponding updated modutils package that is compatible with 2.6 kernels. This new modutils package uses /etc/modprobe.conf instead of the old /etc/modules.conf.

Since both files are almost compatible, you can safely copy the contents of /etc/modules.conf to /etc/modprobe.conf.

#9 lore raw

Re: 2.6.0-test4: CONFIG_KCORE_AOUT doesn't compile

In reply to Adrian Bunk
Quoted 3 lines · Adrian Bunk

Is there any specific reason to keep CONFIG_KCORE_AOUT or is it time to remove this option?

Time to kill it I suspect.

This fixes the linkage problem:

include/linux/proc_fs.h renamed from include/linux/proc_fs.h~kcore-aout-build-fix +7 -8
diff -puN include/linux/proc_fs.h~kcore-aout-build-fix include/linux/proc_fs.h
@@ -182,12 +182,6 @@ static inline void proc_net_remove(const
 	remove_proc_entry(name,proc_net);
 }
 
-/*
- * fs/proc/kcore.c
- */
-extern void kclist_add(struct kcore_list *, void *, size_t);
-extern struct kcore_list *kclist_del(void *);
-
 #else
 
 #define proc_root_driver NULL
@@ -223,6 +217,9 @@ static inline void proc_tty_unregister_d
 
 extern struct proc_dir_entry proc_root;
 
+#endif /* CONFIG_PROC_FS */
+
+#if !defined(CONFIG_PROC_FS) || defined(CONFIG_KCORE_AOUT)
 static inline void kclist_add(struct kcore_list *new, void *addr, size_t size)
 {
 }
@@ -230,8 +227,10 @@ static inline struct kcore_list * kclist
 {
 	return NULL;
 }
-
-#endif /* CONFIG_PROC_FS */
+#else
+extern void kclist_add(struct kcore_list *, void *, size_t);
+extern struct kcore_list *kclist_del(void *);
+#endif
 
 struct proc_inode {
 	struct task_struct *task;

_

#10 lore raw

PATCH 1/1 kill CONFIG_KCORE_AOUT

Quoted 7 lines · Andrew Morton
Quoted 3 lines · Adrian Bunk

Is there any specific reason to keep CONFIG_KCORE_AOUT or is it time to remove this option?

Time to kill it I suspect.
...

The patch below kills CONFIG_KCORE_AOUT.

I've tested the compilation with 2.6.0-test4.

diffstat output:

 arch/alpha/Kconfig     |   34 ----------------------
 arch/arm/Kconfig       |   33 ---------------------
 arch/arm26/Kconfig     |   33 ---------------------
 arch/h8300/Kconfig     |    7 ----
 arch/i386/Kconfig      |   34 ----------------------
 arch/ia64/Kconfig      |   23 ---------------
 arch/m68k/Kconfig      |   34 ----------------------
 arch/m68knommu/Kconfig |    8 -----
 arch/mips/Kconfig      |   25 ----------------
 arch/parisc/Kconfig    |    5 ---
 arch/ppc/Kconfig       |   16 ----------
 arch/ppc64/Kconfig     |   16 ----------
 arch/s390/Kconfig      |    4 --
 arch/sh/Kconfig        |   34 ----------------------
 arch/sparc/Kconfig     |   23 ---------------
 arch/sparc64/Kconfig   |   23 ---------------
 arch/v850/Kconfig      |    8 -----
 arch/x86_64/Kconfig    |    5 ---
 fs/proc/kcore.c        |   68 ---------------------------------------------
 19 files changed, 1 insertion(+), 432 deletions(-)

cu
Adrian

arch/i386/Kconfig renamed from arch/i386/Kconfig.old +0 -34
@@ -1156,40 +1156,6 @@
 
 menu "Executable file formats"
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	depends on PROC_FS
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/mips/Kconfig renamed from arch/mips/Kconfig.old +0 -25
@@ -1126,31 +1126,6 @@
 
 menu "Executable file formats"
 
-config KCORE_ELF
-	bool
-	default y
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool
-
 source "fs/Kconfig.binfmt"
 
 config TRAD_SIGNALS
arch/m68knommu/Kconfig renamed from arch/m68knommu/Kconfig.old +0 -8
@@ -490,14 +490,6 @@
 
 menu "Executable file formats"
 
-config KCORE_AOUT
-	bool
-	default y
-
-config KCORE_ELF
-	bool
-	default y
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/sh/Kconfig renamed from arch/sh/Kconfig.old +0 -34
@@ -729,40 +729,6 @@
 
 menu "Executable file formats"
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	depends on PROC_FS
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/arm26/Kconfig renamed from arch/arm26/Kconfig.old +0 -33
@@ -146,39 +146,6 @@
 	  You may say N here if you are going to load the Acorn FPEmulator
 	  early in the bootup.
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 source "fs/Kconfig.binfmt"
 
 config PREEMPT
arch/m68k/Kconfig renamed from arch/m68k/Kconfig.old +0 -34
@@ -342,40 +342,6 @@
 
 menu "General setup"
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	depends on PROC_FS
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 source "fs/Kconfig.binfmt"
 
 config ZORRO
arch/alpha/Kconfig renamed from arch/alpha/Kconfig.old +0 -34
@@ -597,40 +597,6 @@
 
 source "drivers/pcmcia/Kconfig"
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	depends on PROC_FS
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 config SRM_ENV
 	tristate "SRM environment through procfs"
 	depends on PROC_FS
arch/arm/Kconfig renamed from arch/arm/Kconfig.old +0 -33
@@ -654,39 +654,6 @@
 	  If you do not feel you need a faster FP emulation you should better
 	  choose NWFPE.
 
-choice
-	prompt "Kernel core (/proc/kcore) format"
-	default KCORE_ELF
-
-config KCORE_ELF
-	bool "ELF"
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
-config KCORE_AOUT
-	bool "A.OUT"
-	help
-	  Not necessary unless you're using a very out-of-date binutils
-	  version.  You probably want KCORE_ELF.
-
-endchoice
-
 source "fs/Kconfig.binfmt"
 
 source "drivers/base/Kconfig"
arch/h8300/Kconfig renamed from arch/h8300/Kconfig.old +0 -7
@@ -177,13 +177,6 @@
 
 menu "Executable file formats"
 
-config KCORE_AOUT
-	bool
-	default y
-
-config KCORE_ELF
-	default y
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/v850/Kconfig renamed from arch/v850/Kconfig.old +0 -8
@@ -262,14 +262,6 @@
 
 menu "Executable file formats"
 
-config KCORE_AOUT
-	bool
-	default y
-
-config KCORE_ELF
-	bool
-	default y
-
 source "fs/Kconfig.binfmt"
 
 endmenu
fs/proc/kcore.c renamed from fs/proc/kcore.c.old +1 -67

81 lines not on this page · raw message

arch/sparc64/Kconfig renamed from arch/sparc64/Kconfig.old +0 -23
@@ -363,29 +363,6 @@
 	  <file:Documentation/modules.txt>.
 	  The module will be called openpromfs.  If unsure, say M.
 
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
 config SPARC32_COMPAT
 	bool "Kernel support for Linux/Sparc 32bit binary compatibility"
 	help
arch/sparc/Kconfig renamed from arch/sparc/Kconfig.old +0 -23
@@ -254,29 +254,6 @@
 	  <file:Documentation/modules.txt>.
 	  The module will be called openpromfs.  If unsure, say M.
 
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
 source "fs/Kconfig.binfmt"
 
 config SUNOS_EMUL
arch/ppc/Kconfig renamed from arch/ppc/Kconfig.old +0 -16
@@ -795,22 +795,6 @@
 	bool "PCI for Permedia2"
 	depends on !4xx && !8xx && APUS
 
-# only elf supported, a.out is not -- Cort
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-	help
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image in ELF format. This
-	  can be used in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel.
-
 config KERNEL_ELF
 	bool
 	default y
arch/ia64/Kconfig renamed from arch/ia64/Kconfig.old +0 -23
@@ -297,29 +297,6 @@
 	  If you are compiling a kernel that will run under SGI's IA-64
 	  simulator (Medusa) then say Y, otherwise say N.
 
-# On IA-64, we always want an ELF /proc/kcore.
-config KCORE_ELF
-	bool
-	default y
-	---help---
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image. This can be used
-	  in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  You have two choices here: ELF and A.OUT. Selecting ELF will make
-	  /proc/kcore appear in ELF core format as defined by the Executable
-	  and Linking Format specification. Selecting A.OUT will choose the
-	  old "a.out" format which may be necessary for some old versions
-	  of binutils or on some architectures.
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel so if you
-	  don't understand what this means or are not a kernel hacker, just
-	  leave it at its default value ELF.
-
 config FORCE_MAX_ZONEORDER
 	int
 	default "18"
arch/ppc64/Kconfig renamed from arch/ppc64/Kconfig.old +0 -16
@@ -175,22 +175,6 @@
 	bool
 	default PCI
 
-# only elf supported, a.out is not -- Cort
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-	help
-	  If you enabled support for /proc file system then the file
-	  /proc/kcore will contain the kernel core image in ELF format. This
-	  can be used in gdb:
-
-	  $ cd /usr/src/linux ; gdb vmlinux /proc/kcore
-
-	  This is especially useful if you have compiled the kernel with the
-	  "-g" option to preserve debugging information. It is mainly used
-	  for examining kernel data structures on the live kernel.
-
 source "fs/Kconfig.binfmt"
 
 source "drivers/pci/Kconfig"
arch/parisc/Kconfig renamed from arch/parisc/Kconfig.old +0 -5
@@ -161,11 +161,6 @@
 
 menu "Executable file formats"
 
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/x86_64/Kconfig renamed from arch/x86_64/Kconfig.old +0 -5
@@ -370,11 +370,6 @@
 
 menu "Executable file formats / Emulations"
 
-config KCORE_ELF
-	bool
-	depends on PROC_FS
-	default y
-
 source "fs/Kconfig.binfmt"
 
 config IA32_EMULATION
arch/s390/Kconfig renamed from arch/s390/Kconfig.old +0 -4
@@ -217,10 +217,6 @@
 
 endchoice
 
-config KCORE_ELF
-	bool
-	default y
-
 source "fs/Kconfig.binfmt"
 
 config PROCESS_DEBUG
#11 lore raw

Re: [2.6 patch] kill CONFIG_KCORE_AOUT

Quoted 4 lines · Adrian Bunk

The patch below kills CONFIG_KCORE_AOUT.

I've tested the compilation with 2.6.0-test4.

Not on m68knommu or h8300 you haven't :) They both select CONFIG_KCORE_AOUT in defconfig.

#12 lore raw

Re: [2.6 patch] kill CONFIG_KCORE_AOUT

Quoted 8 lines · Andrew Morton
Quoted 4 lines · Adrian Bunk

The patch below kills CONFIG_KCORE_AOUT.

I've tested the compilation with 2.6.0-test4.

Not on m68knommu or h8300 you haven't :) They both select CONFIG_KCORE_AOUT in defconfig.

The Kconfig files on these architectures had the interesting "feature" that both KCORE_AOUT and KCORE_ELF were enabled unconditionally...

Besides, I always consider the defconfig files as some kinds of generated files and since they only give default answers for "make defconfig" I didn't see the big need for manually editing every single defconfig file.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#13 lore raw

Re: [2.6 patch] kill CONFIG_KCORE_AOUT

Quoted 6 lines · Adrian Bunk
Quoted 4 lines · Andrew Morton
Quoted 3 lines · Adrian Bunk

The patch below kills CONFIG_KCORE_AOUT.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I've tested the compilation with 2.6.0-test4.

Not on m68knommu or h8300 you haven't :) They both select CONFIG_KCORE_AOUT in defconfig.

The Kconfig files on these architectures had the interesting "feature" that both KCORE_AOUT and KCORE_ELF were enabled unconditionally...

heh. Certainly it would be nice to actually delete something for once. It's just a matter of checking with everyone. I'll hang onto your patch and ask around. Thanks.