https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117181
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >--enable-default-pie Enables -fPIE by default. Which does: call __x86.get_pc_thunk.ax You are dumping the object file without any relocations so you got the `call 7` but there is a relocation on that instruction which gets resolved at link time.