Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b28242e7 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

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: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 1de564bb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 */