diff options
author | 2017-09-15 02:15:05 -0500 | |
---|---|---|
committer | 2017-09-15 11:31:50 +0200 | |
commit | df968c9329f6e5cf3596a0a54adb6f749747a746 (patch) | |
tree | 6e7c2dde58d95c1effacb54ecfbaa72bf8843f2f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | objtool: Fix memory leak in elf_create_rela_section() (diff) | |
download | wireguard-linux-df968c9329f6e5cf3596a0a54adb6f749747a746.tar.xz wireguard-linux-df968c9329f6e5cf3596a0a54adb6f749747a746.zip |
objtool: Do not retrieve data from empty sections
Binutils 2.29-9 in Debian return an error when elf_getdata is invoked
on empty section (.note.GNU-stack in all kernel files), causing
immediate failure of kernel build with:
elf_getdata: can't manipulate null section
As nothing is done with sections that have zero size, just do not
retrieve their data at all.
Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/2ce30a44349065b70d0f00e71e286dc0cbe745e6.1505459652.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions