https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116642
--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Joshua from comment #16) > I took out -fpie and the output assembly was different and the binary > started working. That is contrary to the documentation which says you need > -fpie for position independent executables. Which documentation? The official manual on gcc.gnu.org documents the behaviour of hostel GCC, not the Debian build your using, which has been configured differently. Presumably Debian (or Ubuntu) documents the default behaviour of their build. If not, that's a big in their docs, not a big in upstream GCC.