https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238
--- Comment #12 from rguenther at suse dot de <rguenther at suse dot de> --- On April 10, 2018 5:58:32 PM GMT+02:00, "ebotcazou at gcc dot gnu.org" <gcc-bugzi...@gcc.gnu.org> wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238 > >--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- >> So we in additional to that require a target hook that can be queried >> from dwarf2out_early_finish () to disable the output of the sections. >> Or somehow query the simple-object capability there. > >Can't we just put a single kludge in the middle-end, for example based >on >TARGET_PECOFF which is already used for a kludge in varasm.c? Sure, that works for me.