[1/2] scripts/recordmcount.pl: support data in text section on powerpc

Michael Ellerman mpe at ellerman.id.au
Thu Jan 14 00:09:25 AEDT 2016

On Tue, 2016-12-01 at 12:14:22 UTC, Michael Ellerman wrote:
> From: Ulrich Weigand <ulrich.weigand at de.ibm.com>
> If a text section starts out with a data blob before the first
> function start label, disassembly parsing doing in recordmcount.pl
> gets confused on powerpc, leading to creation of corrupted module
> objects.
> This was not a problem so far since the compiler would never create
> such text sections.  However, this has changed with a recent change
> in GCC 6 to support distances of > 2GB between a function and its
> assoicated TOC in the ELFv2 ABI, exposing this problem.
> There is already code in recordmcount.pl to handle such data blobs
> on the sparc64 platform.  This patch uses the same method to handle
> those on powerpc as well.
> Cc: stable at vger.kernel.org
> Signed-off-by: Ulrich Weigand <ulrich.weigand at de.ibm.com>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> Acked-by: Steven Rostedt <rostedt at goodmis.org>

Applied to powerpc next.



More information about the Linuxppc-dev mailing list