[all-commits] [llvm/llvm-project] ec5a61: [lld][MachO] Add `--warn-missing-subsections-via-s...

Dave MacLachlan via All-commits all-commits at lists.llvm.org
Thu Sep 10 15:52:50 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec5a61a1454082773a9071c8a9db0472306a2517
      https://github.com/llvm/llvm-project/commit/ec5a61a1454082773a9071c8a9db0472306a2517
  Author: Dave MacLachlan <dmaclach at gmail.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/Options.td
    M lld/docs/MachO/ld64-vs-lld.md
    M lld/docs/ReleaseNotes.md
    A lld/test/MachO/warn-missing-subsections-via-symbols.s

  Log Message:
  -----------
  [lld][MachO] Add `--warn-missing-subsections-via-symbols` flag (#221464)

This change introduces:

* `--warn-missing-subsections-via-symbols`: Warns when an input object
file with non-empty sections is missing `MH_SUBSECTIONS_VIA_SYMBOLS`.
* `--no-warn-missing-subsections-via-symbols`: Disables the warning
(default).

Also adds documentation and lit tests.

Object files missing `MH_SUBSECTIONS_VIA_SYMBOLS` can prevent
dead-stripping and subsection splitting.

We have seen a number of cases where we are compiling assembly, and this
allows us to track them down.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list