diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-09-20 08:41:19 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-09-20 08:41:19 -0700 |
| commit | 2f7ff5f5479b020df69feb7493d4012685a8fc96 (patch) | |
| tree | 53fcfe396a1091edc7f189886d2a523825e86d27 | |
| parent | bdab18633a302c82b5e5d5dbc4e38b0baf9c0837 (diff) | |
| parent | 7e61560628d17ea6b1d8ee370f6d42694cff8758 (diff) | |
| download | linux-stable-2f7ff5f5479b020df69feb7493d4012685a8fc96.tar.gz linux-stable-2f7ff5f5479b020df69feb7493d4012685a8fc96.zip | |
Merge tag 'objtool-urgent-2026-09-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fix from Ingo Molnar:
- Fix objtool build error on systems where libopcodes is
present, but development headers (binutils-dev) are not
(Ulises Mendez Martinez)
* tag 'objtool-urgent-2026-09-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
objtool: Validate disassembler headers in libopcodes probe
| -rw-r--r-- | tools/objtool/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index a4484fd22..4cc2e756a 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -89,9 +89,11 @@ LIBOPCODES_LIBS := $(shell \ "-lopcodes -lbfd" \ "-lopcodes -lbfd -liberty" \ "-lopcodes -lbfd -liberty -lz"; do \ - echo 'extern void disassemble_init_for_target(void *);' \ - 'int main(void) { disassemble_init_for_target(0); return 0; }' | \ - $(HOSTCC) -xc - -o /dev/null $$libs 2>/dev/null && \ + printf '%s\n' \ + '$(pound)include <bfd.h>' \ + '$(pound)include <dis-asm.h>' \ + 'int main(void) { disassemble_init_for_target(0); return 0; }' | \ + $(HOSTCC) $(HOSTCFLAGS) -DPACKAGE='"objtool"' -xc - -o /dev/null $$libs 2>/dev/null && \ echo "$$libs" && break; \ done) |
