summaryrefslogtreecommitdiff
path: root/scripts/docproc.c
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-01-12 23:14:22 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-01-13 12:35:41 +1100
commit2e50c4bef77511b42cc226865d6bc568fa7f8769 (patch)
tree5c255f1a66df6142d2c5166975a70c17a0733ffd /scripts/docproc.c
parentc88c5d43732a0356f99e5e4d1ad62ab1ea516b81 (diff)
scripts/recordmcount.pl: support data in text section on powerpc
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@vger.kernel.org Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'scripts/docproc.c')
0 files changed, 0 insertions, 0 deletions