Skip to content

Commit 992536f

Browse files
shun159lmb
andauthored
doc: explain why struct_ops uses ignoreExtra
Co-authored-by: Lorenz Bauer <[email protected]> Signed-off-by: Eishun Kondoh <[email protected]>
1 parent 4a3b7d7 commit 992536f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elf_reader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ func init() {
15191519
// This has been in the library since the beginning of time. Not sure
15201520
// where it came from.
15211521
{"seccomp", sys.BPF_PROG_TYPE_SOCKET_FILTER, 0, _SEC_NONE},
1522+
// Override libbpf definition because we want ignoreExtra.
15221523
{"struct_ops+", sys.BPF_PROG_TYPE_STRUCT_OPS, 0, _SEC_NONE | ignoreExtra},
15231524
{"struct_ops.s+", sys.BPF_PROG_TYPE_STRUCT_OPS, 0, _SEC_SLEEPABLE | ignoreExtra},
15241525
}, elfSectionDefs...)

0 commit comments

Comments
 (0)