GNU ld.bfd has MAXPAGESIZE=0x200000 on x86_64, but GNU gold and LLVM's LLD currently set MAXPAGESIZE=0x1000.
Without this change a gold- or lld-linked kernel panics at boot (https://bugs.freebsd.org/214718). With this change I can successfully boot a lld-linked kernel.
See also https://llvm.org/bugs/show_bug.cgi?id=30891, https://reviews.llvm.org/D24987, and discussion on the llvm-commits list in response to D24987 (e.g. http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20161031/thread.html, http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20161031/402183.html)