diff options
| author | Jakub Kicinski <[email protected]> | 2018-06-28 21:41:39 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-06-30 23:01:50 +0000 |
| commit | eac7d84519a35fc9fc8071b7d93803b2b075e2a7 (patch) | |
| tree | a2ec02eaf7ad4a704a9c6fa78535a8b8a9e5e19a /tools/bpf/bpftool/prog.c | |
| parent | tools: libbpf: restore the ability to load programs from .text section (diff) | |
| download | kernel-eac7d84519a35fc9fc8071b7d93803b2b075e2a7.tar.gz kernel-eac7d84519a35fc9fc8071b7d93803b2b075e2a7.zip | |
tools: libbpf: don't return '.text' as a program for multi-function programs
Make bpf_program__next() skip over '.text' section if object file
has pseudo calls. The '.text' section is hardly a program in that
case, it's more of a storage for code of functions other than main.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
