* [PATCH] Fix build with KALLSYMS disabled.
@ 2009-09-25 15:58 Diego Elio 'Flameeyes' Pettenò
2009-09-25 16:14 ` Paulo Marques
0 siblings, 1 reply; 3+ messages in thread
From: Diego Elio 'Flameeyes' Pettenò @ 2009-09-25 15:58 UTC (permalink / raw)
To: linux-kernel
With KALLSYMS disabled, but some debug features enabled, build will fail
because the layout_symtab function uses the wrong type for ELF headers, and
some variables are not declared. Fix that.
Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
---
kernel/module.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/module.c b/kernel/module.c
index 5a29397..8dc6017 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1992,7 +1992,7 @@ static inline unsigned long layout_symtab(struct module *mod,
Elf_Shdr *sechdrs,
unsigned int symindex,
unsigned int strindex,
- const Elf_Hdr *hdr,
+ const Elf_Ehdr *hdr,
const char *secstrings,
unsigned long *pstroffs,
unsigned long *strmap)
@@ -2081,9 +2081,7 @@ static noinline struct module *load_module(void __user *umod,
struct module *mod;
long err = 0;
void *percpu = NULL, *ptr = NULL; /* Stops spurious gcc warning */
-#ifdef CONFIG_KALLSYMS
unsigned long symoffs, stroffs, *strmap;
-#endif
mm_segment_t old_fs;
DEBUGP("load_module: umod=%p, len=%lu, uargs=%p\n",
--
1.6.5.rc1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix build with KALLSYMS disabled.
2009-09-25 15:58 [PATCH] Fix build with KALLSYMS disabled Diego Elio 'Flameeyes' Pettenò
@ 2009-09-25 16:14 ` Paulo Marques
2009-09-25 16:17 ` Diego E. “Flameeyes” Pettenò
0 siblings, 1 reply; 3+ messages in thread
From: Paulo Marques @ 2009-09-25 16:14 UTC (permalink / raw)
To: Diego Elio 'Flameeyes' Pettenò; +Cc: linux-kernel
Diego Elio 'Flameeyes' Pettenò wrote:
> With KALLSYMS disabled, but some debug features enabled, build will fail
> because the layout_symtab function uses the wrong type for ELF headers, and
> some variables are not declared. Fix that.
Hi, Diego
Thanks for the patch, but it seems it arrived about 12 hours too late ;)
http://lkml.org/lkml/2009/9/24/558
--
Paulo Marques - www.grupopie.com
"Very funny Scotty. Now beam up my clothes."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix build with KALLSYMS disabled.
2009-09-25 16:14 ` Paulo Marques
@ 2009-09-25 16:17 ` Diego E. “Flameeyes” Pettenò
0 siblings, 0 replies; 3+ messages in thread
From: Diego E. “Flameeyes” Pettenò @ 2009-09-25 16:17 UTC (permalink / raw)
To: Paulo Marques; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
Il giorno Fri, 25/09/2009 alle 17.14 +0100, Paulo Marques ha scritto:
> Thanks for the patch, but it seems it arrived about 12 hours too
> late ;)
>
Heh, I guess I was too hasty in sending it before I had a working
browser.
--
Diego Elio Pettenò — “Flameeyes”
http://blog.flameeyes.eu/
If you found a .asc file in this mail and know not what it is,
it's a GnuPG digital signature: http://www.gnupg.org/
[-- Attachment #2: Questa è una parte del messaggio firmata digitalmente --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-25 15:58 [PATCH] Fix build with KALLSYMS disabled Diego Elio 'Flameeyes' Pettenò
2009-09-25 16:14 ` Paulo Marques
2009-09-25 16:17 ` Diego E. “Flameeyes” Pettenò
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox