Re: [PATCH] Tell modpost that any reference from .note* is OK

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Andi Kleen <ak@...>, Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, Eric W. Biederman <ebiederm@...>
Date: Tuesday, May 29, 2007 - 5:07 pm

On Tue, May 29, 2007 at 01:33:20PM -0700, Jeremy Fitzhardinge wrote:

I did it a bit different. Adding .note to init_section_ref_ok +
exit_section_ref_ok is much simpler.
Next patch will move .got2 there too.

	Sam

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 */
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Tell modpost that any reference from .note* is OK, Jeremy Fitzhardinge, (Tue May 29, 4:33 pm)
Re: [PATCH] Tell modpost that any reference from .note* is OK, Sam Ravnborg, (Tue May 29, 5:07 pm)
Re: [PATCH] Tell modpost that any reference from .note* is OK, Jeremy Fitzhardinge, (Tue May 29, 5:13 pm)