From 05c312a339096ac54d404029ddfcd0114d452a4c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 20 Aug 2020 18:50:46 +0000 Subject: [PATCH] Bump kldxref's MAXSEGS to 16, to stop complaints about the kernel supposedly having too many segments, when lld 11 links it. Such kernels should load just fine. Note that we may still do some tweaking of our kernel linker scripts, to lower the number of segments, although the exact benefit is not entirely clear. --- usr.sbin/kldxref/ef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c index cad22b1d498e..736b7cab9279 100644 --- a/usr.sbin/kldxref/ef.c +++ b/usr.sbin/kldxref/ef.c @@ -49,7 +49,7 @@ #include "ef.h" -#define MAXSEGS 3 +#define MAXSEGS 16 struct ef_file { char *ef_name; struct elf_file *ef_efile;