Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: include CO-RE relocations of bpf2bpf subprograms
ProgramSpecs read from an ELF contain the full instruction streams from the bpf2bpf subprograms they call. When marshaling a program to be inserted into the kernel, FuncInfos and LineInfos are collected from all called subprogs, but CO-RE relocations were notably skipped after the linker rework in 9d739bd. This commit gathers CO-RE relos for all subprogs included in the final instruction stream and modifies their offsets to point to their new locations. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters