From: Sam Ravnborg Date: Tue, 29 May 2007 21:09:35 +0000 (+0200) Subject: kbuild: ignore section mismatch warnings originating from .note section X-Git-Tag: MMI-PSA29.97-13-9~41446^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b28242e7e3c08072251da6d7bc4895fbd3e58299;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kbuild: ignore section mismatch warnings originating from .note section .note* sections are ELF notes, which are typically used by external tools to examine the kernel image. Since this is removed from any runtime consideration, it's OK to reference any section from a .note* section. Signed-off-by: Jeremy Fitzhardinge Cc: "Eric W. Biederman" Signed-off-by: Sam Ravnborg --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ece09c55e09e..9c35f30d2eda 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1152,6 +1152,7 @@ static int init_section_ref_ok(const char *name) ".debug", ".parainstructions", ".rodata", + ".note", /* ignore ELF notes - may contain anything */ NULL }; /* part of section name */ @@ -1228,6 +1229,7 @@ static int exit_section_ref_ok(const char *name) /* Start of section names */ const char *namelist2[] = { ".debug", + ".note", /* ignore ELF notes - may contain anything */ NULL }; /* part of section name */