Skip to content

Instantly share code, notes, and snippets.

@mattnite
Last active October 3, 2020 16:42
Show Gist options
  • Save mattnite/2ba7858128b59de31fbb7c95ea90d577 to your computer and use it in GitHub Desktop.
Save mattnite/2ba7858128b59de31fbb7c95ea90d577 to your computer and use it in GitHub Desktop.
section headers for simple bpf program
$ llvm-objdump --section-headers src/probe.o
src/probe.o: file format ELF64-BPF
Sections:
Idx Name Size VMA Type
0 00000000 0000000000000000
1 .text 00000000 0000000000000000 TEXT
2 socket1 00000070 0000000000000000 TEXT
3 .relsocket1 00000010 0000000000000000
4 maps 00000014 0000000000000000 DATA
...
15 .BTF 00000201 0000000000000000
16 .BTF.ext 00000090 0000000000000000
17 .rel.BTF.ext 00000060 0000000000000000
...
23 .symtab 00001920 0000000000000000
24 .shstrtab 00000135 0000000000000000
25 .strtab 00000017 0000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment