diff options
author | Matt Mackall <mpm@selenic.com> | 2006-01-08 04:05:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:14:11 -0500 |
commit | 708e9a794cf8822b760edaccd9053edb07c34d19 (patch) | |
tree | ae5f0f9d69c082db751554b3f5717eee60d6205c | |
parent | e585e47031751f4e393e10ffd922885508b958dd (diff) |
[PATCH] tiny: Configure ELF core dump support
configurable support for ELF core dumps
text data bss dec hex filename
3330172 529036 190556 4049764 3dcb64 vmlinux-baseline
3325552 528912 190556 4045020 3db8dc vmlinux-no-elf
add/remove: 0/8 grow/shrink: 0/0 up/down: 0/-4424 (-4424)
function old new delta
fill_note 32 - -32
maydump 58 - -58
dump_seek 67 - -67
writenote 180 - -180
elf_dump_thread_status 274 - -274
fill_psinfo 308 - -308
fill_prstatus 466 - -466
elf_core_dump 3039 - -3039
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/binfmt_elf.c | 4 | ||||
-rw-r--r-- | init/Kconfig | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 288386b1deff..80ca932ba0bd 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -58,7 +58,7 @@ extern int dump_fpu (struct pt_regs *, elf_fpregset_t *); | |||
58 | * If we don't support core dumping, then supply a NULL so we | 58 | * If we don't support core dumping, then supply a NULL so we |
59 | * don't even try. | 59 | * don't even try. |
60 | */ | 60 | */ |
61 | #ifdef USE_ELF_CORE_DUMP | 61 | #if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE) |
62 | static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file); | 62 | static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file); |
63 | #else | 63 | #else |
64 | #define elf_core_dump NULL | 64 | #define elf_core_dump NULL |
@@ -1113,7 +1113,7 @@ out: | |||
1113 | * Note that some platforms still use traditional core dumps and not | 1113 | * Note that some platforms still use traditional core dumps and not |
1114 | * the ELF core dump. Each platform can select it as appropriate. | 1114 | * the ELF core dump. Each platform can select it as appropriate. |
1115 | */ | 1115 | */ |
1116 | #ifdef USE_ELF_CORE_DUMP | 1116 | #if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE) |
1117 | 1117 | ||
1118 | /* | 1118 | /* |
1119 | * ELF core dumper | 1119 | * ELF core dumper |
diff --git a/init/Kconfig b/init/Kconfig index 1a1f114a37e8..9ac522a40130 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -327,6 +327,12 @@ config DOUBLEFAULT | |||
327 | would otherwise cause a system to silently reboot. Disabling this | 327 | would otherwise cause a system to silently reboot. Disabling this |
328 | option saves about 4k. | 328 | option saves about 4k. |
329 | 329 | ||
330 | config ELF_CORE | ||
331 | default y | ||
332 | bool "Enable ELF core dumps" if EMBEDDED | ||
333 | help | ||
334 | Enable support for generating core dumps. Disabling saves about 4k. | ||
335 | |||
330 | config BASE_FULL | 336 | config BASE_FULL |
331 | default y | 337 | default y |
332 | bool "Enable full-sized data structures for core" if EMBEDDED | 338 | bool "Enable full-sized data structures for core" if EMBEDDED |