diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-08-05 09:22:11 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-08-05 09:22:11 +0000 |
| commit | dfc3579745a02f64a7f835c2a923ffb71a76d662 (patch) | |
| tree | 7e5cef672714d47ca8cc14a6de1eee8a1c2d4b7d /linux/fix-musl-objtool.patch | |
| parent | 3fea128886ac11c5fcf7fb8e65cd89f3ab9ba02e (diff) | |
| download | alicelinux-dfc3579745a02f64a7f835c2a923ffb71a76d662.tar.gz alicelinux-dfc3579745a02f64a7f835c2a923ffb71a76d662.zip | |
Woodpecker CI 6804cedeba5a6cd14c0deac262abe8826383eb92 [SKIP CI]
Diffstat (limited to 'linux/fix-musl-objtool.patch')
| -rw-r--r-- | linux/fix-musl-objtool.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/linux/fix-musl-objtool.patch b/linux/fix-musl-objtool.patch new file mode 100644 index 00000000..851a53da --- /dev/null +++ b/linux/fix-musl-objtool.patch @@ -0,0 +1,14 @@ +objtool is using the headers provided by kernel-libc-headers, which are kernel version 5.10, so +they use __always_inline instead of inline, and musl doesn't define __always_inline (glibc does) + +--- a/tools/objtool/Makefile ++++ b/tools/objtool/Makefile +@@ -32,7 +32,7 @@ INCLUDES := -I$(srctree)/tools/include \ + # Note, EXTRA_WARNINGS here was determined for CC and not HOSTCC, it + # is passed here to match a legacy behavior. + WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed -Wno-nested-externs +-OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) ++OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) -D__always_inline=inline + OBJTOOL_LDFLAGS := $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS) + + # Allow old libelf to be used: |