]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Fix dedotify for binutils >= 2.26
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 5 Feb 2016 18:50:03 +0000 (19:50 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 13 Apr 2016 21:14:28 +0000 (17:14 -0400)
commit9c99016a364ab695755e3a66c4dbfb53b9c07a0f
tree609271232078df291ec2927b42a885f4290c7f66
parenta490e8a46260de7257bbb0bfed9316f4a74cf524
powerpc: Fix dedotify for binutils >= 2.26

[ Upstream commit f15838e9cac8f78f0cc506529bb9d3b9fa589c1f ]

Since binutils 2.26 BFD is doing suffix merging on STRTAB sections.  But
dedotify modifies the symbol names in place, which can also modify
unrelated symbols with a name that matches a suffix of a dotted name.  To
remove the leading dot of a symbol name we can just increment the pointer
into the STRTAB section instead.

Backport to all stables to avoid breakage when people update their
binutils - mpe.

Cc: stable@vger.kernel.org
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/powerpc/kernel/module_64.c