[all-commits] [llvm/llvm-project] 887d2d: [LLD] [ELF] Make -z gcs=always implicitly warn on ...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Mar 13 01:52:51 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 887d2d4bf7380113b27f199f323eeee883f17191
      https://github.com/llvm/llvm-project/commit/887d2d4bf7380113b27f199f323eeee883f17191
  Author: Martin Storsjö <martin at martin.st>
  Date:   2026-03-13 (Fri, 13 Mar 2026)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/test/ELF/aarch64-feature-gcs.s

  Log Message:
  -----------
  [LLD] [ELF] Make -z gcs=always implicitly warn on missing GCS, like force-bti (#186203)

This matches GNU ld, where gcs=always makes it implicitly warn about
missing GCS flags, by matching the existing code pattern used for BTI
and IBT.

Also test that warnings can be printed for both missing BTI and GCS for
the same object file.

This fixes #186173.



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