diff options
author | Ingo Molnar <mingo@kernel.org> | 2020-04-22 12:32:03 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-04-23 08:34:18 +0200 |
commit | 894e48cada64ec384873fad4fe1b0d0c7de31a29 (patch) | |
tree | c7cd938c89d94d7efe9df73700fce0e796588087 /scripts/gcc-ld | |
parent | objtool: Also consider .entry.text as noinstr (diff) | |
download | linux-894e48cada64ec384873fad4fe1b0d0c7de31a29.tar.xz linux-894e48cada64ec384873fad4fe1b0d0c7de31a29.zip |
objtool: Constify 'struct elf *' parameters
In preparation to parallelize certain parts of objtool, map out which uses
of various data structures are read-only vs. read-write.
As a first step constify 'struct elf' pointer passing, most of the secondary
uses of it in find_symbol_*() methods are read-only.
Also, while at it, better group the 'struct elf' handling methods in elf.h.
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200422103205.61900-2-mingo@kernel.org
Diffstat (limited to 'scripts/gcc-ld')
0 files changed, 0 insertions, 0 deletions