- powerpc64-symbols-start-with.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     PowerPC64 symbols start with '.'
has been removed from the -mm tree.  Its filename was
     powerpc64-symbols-start-with.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: PowerPC64 symbols start with '.'
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

which we want to skip during modpost processing.  We need this to make some
of the whitelisting work.

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 scripts/mod/modpost.c |   18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff -puN scripts/mod/modpost.c~powerpc64-symbols-start-with scripts/mod/modpost.c
--- a/scripts/mod/modpost.c~powerpc64-symbols-start-with
+++ a/scripts/mod/modpost.c
@@ -164,7 +164,13 @@ static inline unsigned int tdb_hash(cons
 static struct symbol *alloc_symbol(const char *name, unsigned int weak,
 				   struct symbol *next)
 {
-	struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1));
+	struct symbol *s;
+
+	/* For our purposes, .foo matches foo.  PPC64 needs this. */
+	if (name[0] == '.')
+		name++;
+
+	s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1));
 
 	memset(s, 0, sizeof(*s));
 	strcpy(s->name, name);
@@ -180,6 +186,10 @@ static struct symbol *new_symbol(const c
 	unsigned int hash;
 	struct symbol *new;
 
+	/* For our purposes, .foo matches foo.  PPC64 needs this. */
+	if (name[0] == '.')
+		name++;
+
 	hash = tdb_hash(name) % SYMBOL_HASH_SIZE;
 	new = symbolhash[hash] = alloc_symbol(name, 0, symbolhash[hash]);
 	new->module = module;
@@ -684,6 +694,12 @@ static int secref_whitelist(const char *
 		NULL
 	};
 
+	/* For our purposes, .foo matches foo.  PPC64 needs this. */
+	if (atsym[0] == '.')
+		atsym++;
+	if (refsymname[0] == '.')
+		refsymname++;
+
 	/* Check for pattern 1 */
 	if (strcmp(tosec, ".init.data") != 0)
 		f1 = 0;
_

Patches currently in -mm which might be from sfr@xxxxxxxxxxxxxxxx are

origin.patch
git-powerpc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux