Skip to content

Commit

Permalink
kbuild: ignore section mismatch warnings originating from .note section
Browse files Browse the repository at this point in the history
.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>
  • Loading branch information
Sam Ravnborg committed Jul 16, 2007
1 parent 1de564b commit b28242e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit b28242e

Please sign in to comment.