https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87833
--- Comment #8 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Author: tschwinge Date: Mon Nov 11 08:38:28 2019 New Revision: 278041 URL: https://gcc.gnu.org/viewcvs?rev=278041&root=gcc&view=rev Log: [PR87833] x86: Put -fPIC and -shared the last to create offload image On x86, since -fPIC and -shared should be used to create offload image, we put them the last to properly create offload image. 2019-11-11 H.J. Lu <hjl.to...@gmail.com> PR target/87833 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put -fPIC and -shared the last to create offload image. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/intelmic-mkoffload.c