https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70258
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-fPIE isn't passed to lto |-fPIE isn't passed to lto |by default when GCC is |by default |configured with | |--enable-default-pie | --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- It has nothing to do with --enable-default-pie. lto-opts.c doesn't handle PIE/PIC at all.