diff options
author | Tony Ambardar <[email protected]> | 2020-09-19 22:01:34 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-09-21 21:50:44 +0200 |
commit | 65c204398928f9c79f1a29912b410439f7052635 (patch) | |
tree | 4c5e8a30ef866a06423b426ef05fee560eca03c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e23bb04b0c938588eae41b7f4712b722290ed2b8 (diff) |
bpf: Prevent .BTF section elimination
Systems with memory or disk constraints often reduce the kernel footprint
by configuring LD_DEAD_CODE_DATA_ELIMINATION. However, this can result in
removal of any BTF information.
Use the KEEP() macro to preserve the BTF data as done with other important
sections, while still allowing for smaller kernels.
Fixes: 90ceddcb4950 ("bpf: Support llvm-objcopy for vmlinux BTF")
Signed-off-by: Tony Ambardar <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/a635b5d3e2da044e7b51ec1315e8910fbce0083f.1600417359.git.Tony.Ambardar@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions