aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorYiFei Zhu <zhuyifei1999@gmail.com>2021-04-22 05:05:56 -0500
committerDavid Faust <david.faust@oracle.com>2021-04-23 09:56:20 -0700
commit0a662e103e911af935aa5c601051c135986ce3de (patch)
tree84689b4e37aef8c73067d3d055b53a0ede528464 /gcc/tree-complex.c
parent716bb02b40ecef5564abb5ba45a594323123a104 (diff)
downloadgcc-0a662e103e911af935aa5c601051c135986ce3de.zip
gcc-0a662e103e911af935aa5c601051c135986ce3de.tar.gz
gcc-0a662e103e911af935aa5c601051c135986ce3de.tar.bz2
bpf: align function entry point to 64 bits
Libbpf does not treat paddings after functions well. If function symbols does not cover a whole text section, it will emit error similar to: libbpf: sec '.text': failed to find program symbol at offset 56 Each instruction in BPF is a multiple of 8 bytes, so align the functions to 8 bytes, similar to how clang does it. 2021-04-22 YiFei Zhu <zhuyifei1999@gmail.com> gcc/ * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions