Re: Why the executable file type is also "DYN", not "EXEC"?

2017-10-05 Thread William Ahern
On Wed, Oct 04, 2017 at 04:17:32PM +0800, Nan Xiao wrote: > Hi all, > > I find the type of executable file format on OpenBSD is "DYN", not > "EXEC": > Is there any special consideration for it? Thanks very much in advance! > Because it was built as a position-independent executable (PIE). See

Why the executable file type is also "DYN", not "EXEC"?

2017-10-04 Thread Nan Xiao
Hi all, I find the type of executable file format on OpenBSD is "DYN", not "EXEC": # readelf -h /usr/bin/ldd ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian