summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-05-29 23:09:35 +0200
committerSam Ravnborg <sam@ravnborg.org>2007-07-16 22:41:47 +0200
commitb28242e7e3c08072251da6d7bc4895fbd3e58299 (patch)
treedb7b662012597c53db381d62e10844507b559dca /scripts/mod/modpost.c
parent1de564bbf8b630ab356571cdbd15b7d5adb1c20d (diff)
downloadlinux-b28242e7e3c08072251da6d7bc4895fbd3e58299.tar.gz
linux-b28242e7e3c08072251da6d7bc4895fbd3e58299.tar.bz2
linux-b28242e7e3c08072251da6d7bc4895fbd3e58299.zip
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 <jeremy@xensource.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 2 insertions, 0 deletions
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 */