Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"io/fs"
"math"
"slices"
"strings"
Expand Down Expand Up @@ -148,7 +149,9 @@ func applyRelocations(insns asm.Instructions, bo binary.ByteOrder, b *btf.Builde
}

modules, err := c.Modules()
if err != nil {
// Ignore ErrNotExists to cater to kernels which have CONFIG_DEBUG_INFO_BTF_MODULES
// or CONFIG_DEBUG_INFO_BTF disabled.
if err != nil && !errors.Is(err, fs.ErrNotExist) {
return err
}

Expand Down
Loading