mirror-llvm-project/clang/tools
Fangrui Song 62b14a8890 [MC,clang] Fix -Wa,--noexecstack not emitting .note.GNU-stack (#187880)
AsmPrinter (clang -c a.c) and AsmParser (clang -c a.s, llvm-mc
-filetype=obj a.s) have different ways to emit .note.GNU-stack section.

913c5b4d1f removed a redundant initSections call from cc1as, but
that was the only place where NoExecStack was consumed for the
assembler path.

Unify the .note.GNU-stack emission in MCELFStreamer::finishImpl,
making the `initSections` parameter redundant.

Add a -filetype=obj test for Solaris (see
https://reviews.llvm.org/D159179), which doesn't use .note.GNU-stack

`initSections` has 20+ uses. The parameter cleanup will be deferred to a
subsequent change.

Fixes https://github.com/llvm/llvm-project/issues/186004
2026-03-30 15:00:51 +00:00
..
apinotes-test
c-index-test Reland "[clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontend" (#169599) 2025-11-26 13:33:26 +01:00
cir-lsp-server [mlir] Reland Move InitAll*** implementation into static library (#151150) 2025-07-29 18:15:33 +03:00
cir-opt [CIR] Upstream the initial BlockAddressOp implementation (#168151) 2025-11-17 13:01:04 -05:00
cir-translate [cir-translate] Fix crash issue where the data layout string is missing (#147209) 2025-07-09 23:26:15 -04:00
clang-check Reland "[clang] Refactor option-related code from clangDriver into new clangOptions library" (#167374) 2025-11-10 21:24:39 +01:00
clang-diff
clang-extdef-mapping [clang] Fix options handling in ClangExtDefMapGen.cpp (#176116) 2026-01-19 10:07:52 +00:00
clang-format [clang-format]: Fix JSON casing (#168156) 2025-11-16 16:01:06 +00:00
clang-fuzzer [clang-fuzzer] Remove Dockerfile (#162555) 2025-10-22 05:59:52 -07:00
clang-import-test [Clang] Improve CodeGenerator API a bit (#175239) 2026-01-12 22:46:59 +01:00
clang-installapi [clang] Remove pointless hasDiagnostics() checks (#172705) 2025-12-17 12:18:28 -08:00
clang-linker-wrapper [LLVM][NFC] Move PassPlugin from Passes to separate library 2025-12-22 18:11:34 +01:00
clang-nvlink-wrapper [Clang] Fix warning on device debugging when passing -O0 (#175628) 2026-01-12 15:49:07 -06:00
clang-offload-bundler [NFC][clang-offload-bundler] Simplify main function (#138555) 2025-05-05 20:01:42 -07:00
clang-refactor [clang] Enforce 1-based indexing for command line source locations (#139457) 2025-05-15 09:36:28 -04:00
clang-repl [clang-repl] Rework layering of incremental executors. (#175448) 2026-01-12 11:46:26 +02:00
clang-scan-deps [clang][deps] Prefer DiagnosticConsumer over llvm::{Error,Expected} (#172389) 2025-12-16 08:54:42 -08:00
clang-shlib [clang-shlib] Fix linking libclang-cpp on Haiku (#156401) 2025-10-29 20:55:15 -04:00
clang-sycl-linker [NFC][clang-sycl-linker] Avoid ambiguous call to CallingConv (#161682) 2025-10-02 15:27:56 +00:00
diag-build
diagtool Reland "[clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontend" (#169599) 2025-11-26 13:33:26 +01:00
driver [MC,clang] Fix -Wa,--noexecstack not emitting .note.GNU-stack (#187880) 2026-03-30 15:00:51 +00:00
include-mapping Fix tests of lookup table generator (#139463) 2025-05-27 13:45:11 +02:00
libclang [HLSL][Matrix] Add support for single subscript accessor (#170779) 2025-12-17 17:04:28 -05:00
offload-arch [offload-arch] Fix amdgpu-arch crash on Windows with ROCm 7.1 (#167695) 2025-11-13 19:03:21 -05:00
scan-build [clang][tools] Update Python2 code in set-xcode-analyzer to Python3 (#163737) 2025-11-03 13:16:10 +00:00
scan-build-py [clang][cmake] Add option to control scan-build-py installation (#172727) 2025-12-18 18:35:44 -05:00
scan-view [clang][tools][scan-view] Remove Python2 compatibility code in ScanView.py (#163747) 2025-10-31 10:19:10 +00:00
CMakeLists.txt [clang] Only build c-index-test and apinotes-test when clang tests are included (#151157) 2025-12-02 11:05:55 +00:00