improve error handling in map_library and support long phdrs
authorRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 13:56:49 +0000 (09:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 13:56:49 +0000 (09:56 -0400)
commitd5884a574cf156c8346e84b495b5cb29bbbd2d1a
tree64eb0ebd4abbe2149722d3c4915a82d0dd8a439c
parent7443dd271c09e8209a9478388fcd64a633b485e7
improve error handling in map_library and support long phdrs

previously, errno could be meaningless when the caller wrote it to the
dlerror string or stderr. try to make it meaningful. also, fix
incorrect check for over-long program headers and instead actually
support them by allocating memory if needed.
src/ldso/dynlink.c