It looks like it is actually expected for an ELF executable to have the type DYN when it is built with -pie.
It looks like it is actually expected for an ELF executable to have the type DYN when it is built with -pie.