Use xmalloc and read(2) instead of mmap(2) to read in libmap.conf(5).
authortrasz <trasz@FreeBSD.org>
Tue, 24 Oct 2017 10:48:26 +0000 (10:48 +0000)
committertrasz <trasz@FreeBSD.org>
Tue, 24 Oct 2017 10:48:26 +0000 (10:48 +0000)
commitf80b54856968a703938b5bb86dc5b24034d0347a
tree5c871d3cc320c278fb2411e3b349446795d0f303
parent70599765375c030bab75b575fb18a98ea327313f
Use xmalloc and read(2) instead of mmap(2) to read in libmap.conf(5).
This removes the need to call munmap(2) afterwards.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12767
libexec/rtld-elf/libmap.c