• Alexei Starovoitov's avatar
    libbpf: add support for bpf_call · 48cca7e4
    Alexei Starovoitov authored
    - recognize relocation emitted by llvm
    - since all regular function will be kept in .text section and llvm
      takes care of pc-relative offsets in bpf_call instruction
      simply copy all of .text to relevant program section while adjusting
      bpf_call instructions in program section to point to newly copied
      body of instructions from .text
    - do so for all programs in the elf file
    - set all programs types to the one passed to bpf_prog_load()
    
    Note for elf files with multiple programs that use different
    functions in .text section we need to do 'linker' style logic.
    This work is still TBD
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    48cca7e4
Name
Last commit
Last update
..
api Loading commit data...
bpf Loading commit data...
lockdep Loading commit data...
subcmd Loading commit data...
symbol Loading commit data...
traceevent Loading commit data...
bitmap.c Loading commit data...
find_bit.c Loading commit data...
hweight.c Loading commit data...
rbtree.c Loading commit data...
str_error_r.c Loading commit data...
string.c Loading commit data...
vsprintf.c Loading commit data...