#1133119 PIE support missing in python3.13

Package:
python3.13
Source:
python3.13
Description:
Interactive high-level object-oriented language (version 3.13)
Submitter:
Date:
2026-04-10 05:03:02 UTC
Severity:
normal
#1133119#5
Date:
2026-04-10 05:00:18 UTC
From:
To:
Dear Maintainer,

I am writing regarding PIE (Position Independent Executable) support in python 3.13. Running `hardening-check` on the binary indicates that PIE is not enabled:

```
$ hardening-check /usr/bin/python3.13

/usr/bin/python3.13:
 Position Independent Executable: no, normal executable!
 Stack protected: yes
 Fortify Source functions: yes (some protected functions found)
 Read-only relocations: yes
 Immediate binding: no, not found!
 Stack clash protection: unknown, no -fstack-clash-protection instructions found
 Control flow integrity: no, not found!
 Branch Protection: no, not found!
```

I tested this on Debian Trixie. I'm aware of the older BTS issue [1] which was apparently resolved by enabling PIE (I guess via commits [2] and [3]), but PIE appears to still be disabled in python 3.13 on Trixie. I also confirmed the same behaviour in python 3.11 on Bookworm.

Is this a known regression, or am I missing something? Any guidance would be appreciated.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919134#55
[2] https://salsa.debian.org/cpython-team/python3/-/commit/b23d4ec00357597127b8651a1f4f5e3eea388d72
[3] https://salsa.debian.org/cpython-team/python3/-/commit/4faf96b52843e91c28c2e4cc2a5cbb8b88ff7ec3

Thanks and Regards,
Adithya Balakumar