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:
Ed Maste 2017-02-10 19:17:10 +00:00
parent d65b2f7ed6
commit b6c03f2122
1 changed files with 1 additions and 1 deletions

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;