I noted a few posts back that Ubuntu behaves differently from Debian, I suspected it was the binutils. Using same recipe exactly, Ubuntu 20.40 does not make a PIE. But, as a seeming separate thing, Ubuntu does not report PIE using the file command, even on a binary that we know is PIE (made on Debian).
I test against Bullseye which is a newer release than U20.04, perhaps the newer ubuntu is more cooperative ?
Davo