commit | b588efc6c04ca94821200231fc24a12b397e3dd5 | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Fri Apr 24 12:30:46 2020 -0700 |
committer | Sami Tolvanen <samitolvanen@google.com> | Thu Aug 27 10:54:55 2020 -0700 |
tree | 8cee3b5ffe8bddc2278068d0991ff9a45dfada01 | |
parent | 4aa9e2613188b9d3ed3df34663d0758be40281ec [diff] |
BACKPORT: recordmcount: support >64k sections When compiling a kernel with Clang and LTO, we need to run recordmcount on vmlinux.o with a large number of sections, which currently fails as the program doesn't understand extended section indexes. This change adds support for processing binaries with >64k sections. Link: https://lkml.kernel.org/r/20200424193046.160744-1-samitolvanen@google.com Link: https://lore.kernel.org/lkml/CAK7LNARbZhoaA=Nnuw0=gBrkuKbr_4Ng_Ei57uafujZf7Xazgw@mail.gmail.com/ Bug: 166522612 Cc: Kees Cook <keescook@chromium.org> Reviewed-by: Matt Helsley <mhelsley@vmware.com> Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> (cherry picked from commit 4ef57b21d6fb49d2b25c47e4cff467a0c2c8b6b7) Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Change-Id: I39acdf51ca882020bbacd5c54299d2e2e6f02ed3