From d3b5abd4282ad6ec83d3d0e2697e4c32e1094664 Mon Sep 17 00:00:00 2001 From: emaste Date: Fri, 17 Feb 2017 00:49:01 +0000 Subject: MFC r313563: kldxref: bump MAXSEGS to 3 ld.bfd generates two PT_LOAD segments, but certain linkers or linker configurations generate three PT_LOAD segments (one additional for RELRO). PR: 216975 --- usr.sbin/kldxref/ef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c index aa3fc2e..d700b2a 100644 --- a/usr.sbin/kldxref/ef.c +++ b/usr.sbin/kldxref/ef.c @@ -47,7 +47,7 @@ #include "ef.h" -#define MAXSEGS 2 +#define MAXSEGS 3 struct ef_file { char* ef_name; struct elf_file *ef_efile; -- cgit v1.1