[all-commits] [llvm/llvm-project] 993e83: [Driver] Don't pass -Z to ld for ELF platforms (#6...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Oct 15 19:12:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 993e839480449de63aefb1a1ae9142eefed5e7a6
https://github.com/llvm/llvm-project/commit/993e839480449de63aefb1a1ae9142eefed5e7a6
Author: Fangrui Song <i at maskray.me>
Date: 2023-10-15 (Sun, 15 Oct 2023)
Changed paths:
M clang/lib/Driver/ToolChains/BareMetal.cpp
M clang/lib/Driver/ToolChains/CSKYToolChain.cpp
M clang/lib/Driver/ToolChains/FreeBSD.cpp
M clang/lib/Driver/ToolChains/Haiku.cpp
M clang/lib/Driver/ToolChains/MinGW.cpp
M clang/lib/Driver/ToolChains/NetBSD.cpp
M clang/lib/Driver/ToolChains/OpenBSD.cpp
M clang/lib/Driver/ToolChains/RISCVToolchain.cpp
M clang/test/Driver/openbsd.c
Log Message:
-----------
[Driver] Don't pass -Z to ld for ELF platforms (#69120)
-Z is an Apple ld64 option. ELF linkers don't recognize -Z, except
OpenBSD which patched GNU ld to add -Z for zmagic (seems unused)
> -Z Produce 'Standard' executables, disables Writable XOR Executable
features in resulting binaries.
Some `ToolChain`s have -Z due to copy-and-paste mistakes.
More information about the All-commits
mailing list