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
Reported by:	Shawn Webb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2017-02-10 19:17:10 +00:00
parent 1e27dea9e0
commit ea2e2dc5ed

View File

@ -47,7 +47,7 @@
#include "ef.h"
#define MAXSEGS 2
#define MAXSEGS 3
struct ef_file {
char* ef_name;
struct elf_file *ef_efile;