don't fail to map library/executable with zero-length segment maps
authorRich Felker <dalias@aerifal.cx>
Fri, 5 Mar 2021 16:09:32 +0000 (11:09 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Mar 2021 16:13:02 +0000 (11:13 -0500)
commitcfdfd5ea3ce14c6abf7fb22a531f3d99518b5a1b
tree21fa324b6947b11a815baff22278131cd3cddc4c
parente48e99c112246fb580596404074445cb25d7858d
don't fail to map library/executable with zero-length segment maps

reportedly the GNU linker can emit such segments, causing spurious
failure to load due to mmap with a length of zero producing EINVAL.
no action is required for such a load map (it's effectively a nop in
the program headers table) so just treat it as always successful.
ldso/dynlink.c