Will python still be PIE? Or will you disable hardening and build it
as
a position-dependent binary?
Yes, the python ELF binary still uses PIE (Position Independent Executable). I checked the
patched package:
$ file /usr/bin/python3.8
/usr/bin/python3.8: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0,
BuildID[sha1]=b69aa38762233169fa21b3943e1ca62f86b2358b, stripped
$ rpm -q python38
python38-3.8.0-666.fc30.x86_64
Victor