--- Comment #10 from Richard Biener <rguenth at gcc dot> ---
So I guess for darwin we're confused by lto-wrapper.c:debug_objcopy using

  simple_object_read *inobj = simple_object_start_read (infd, inoff,
                                                        &errmsg, &err);
  if (!inobj)
    return NULL;

  off_t off, len;
  if (simple_object_find_section (inobj, ".gnu.debuglto_.debug_info",
                                  &off, &len, &errmsg, &err) != 1)

which won't find the darwin early debug sections anyway and the effect of
the (still correct!) patch is to disable references to the early debug
section in the IL.

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.

Reply via email to