* [PATCH 13/19] kbuild: ignore section mismatch warnings originating from .note section
@ 2007-06-03 20:48 Sam Ravnborg
0 siblings, 0 replies; only message in thread
From: Sam Ravnborg @ 2007-06-03 20:48 UTC (permalink / raw)
To: LKML, Andrew Morton, kbuild-devel
Subject: [PATCH 13/19] kbuild: ignore section mismatch warnings originating from .note section
From: Sam Ravnborg <sam@ravnborg.org>
Date: Tue, 29 May 2007 23:09:35 +0200
.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>
---
scripts/mod/modpost.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 662deba..b824198 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1139,6 +1139,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 */
@@ -1214,6 +1215,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 */
--
1.5.1.rc3.1544.g8a923
----- End forwarded message -----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-03 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-03 20:48 [PATCH 13/19] kbuild: ignore section mismatch warnings originating from .note section Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®