src: port GetLoadedLibraries for freebsd
[came to know this recently, when I got access to a freebsd box]
the dl_iterate_phdr
and its associated data structure in Linux are fully available in freebsd as well, so opening it up for freebsd means just opening up the platform specific identifiers.
Refs: https://github.com/nodejs/node/pull/24825
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines