diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2021-05-20 11:21:39 -0700 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2021-06-28 18:47:21 +0200 |
commit | d5cf2b5db325fd5c053ca7bc8d6a54a06cd71124 (patch) | |
tree | 20263bd75b4a944a9aaf3119caac662a9e450c87 /gcc/ada/gcc-interface/utils.c | |
parent | 824a6a52a6c2892c8d4a4a889a425bdaf207634f (diff) | |
download | gcc-d5cf2b5db325fd5c053ca7bc8d6a54a06cd71124.zip gcc-d5cf2b5db325fd5c053ca7bc8d6a54a06cd71124.tar.gz gcc-d5cf2b5db325fd5c053ca7bc8d6a54a06cd71124.tar.bz2 |
Enable BTF generation in the BPF backend
This patch changes the BPF GCC backend in order to use the DWARF debug
hooks and therefore enables the user to generate BTF debugging
information with -gbtf. Generating BTF is crucial when compiling BPF
programs, since the CO-RE (compile-once, run-everwhere) mechanism
used by the kernel BPF loader relies on it.
Note that since in eBPF it is not possible to unwind frames due to the
restrictive nature of the target architecture, we are disabling the
generation of CFA in this target.
2021-06-28 David Faust <david.faust@oracle.com>
* config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
frame related.
(bpf_expand_epilogue): Likewise.
* config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
Do not define DBX_DEBUGGING_INFO.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions