commit | 339516addbde87760f3c0f175a4abcf5d629df54 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Jul 31 14:42:08 2013 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Jul 31 14:42:08 2013 -0400 |
tree | d367924554efd34bb36581dc047d53190a14a358 | |
parent | c4f49a6a726fcd07bb15198ac4556100320934a9 [diff] |
add some sanity checks in dynamic loader code reject elf files which are not ET_EXEC/ET_DYN type as bad exec format, and reject ET_EXEC files when they cannot be loaded at the correct address, since they are not relocatable at runtime. the main practical benefit of this is to make dlopen of the main program fail rather than producing an unsafe-to-use handle.