commit | 05a295b1c1f96e2e35daf4f90c1a5c43c992e68a | [log] [tgz] |
---|---|---|
author | Fangrui Song <i@maskray.me> | Tue Nov 30 11:06:28 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 30 11:13:38 2021 -0800 |
tree | e416f4c02de858d38db98fbe27bc446ad8af8808 | |
parent | a4fe1f3f4578e9a03f31ea3167d9e2648219cf06 [diff] |
[ELF] Change -z unknown from error to warning There is a trend of having more optional options (usually security hardening related) like -z cet-report=, -z bti-report=, -z force-bti. If ld.lld 14.0.0 uses a warning, in 15/16/17/... timeframe when people add new options to software, they can worry less about linker errors on ld.lld 14.0.0. In some cases `-z foo` does essential work where a silent ignore can be problematic, but the user has received a warning. From my observation, the doing-essential-work `-z foo` is much fewer than the converse. In addition, the user who cares can use `--fatal-warnings` (Note: GNU ld doesn't upgrade warnings to errors). It is unclear whether we need something like `clang -Wunknown-warning-option`. If we ever run into unfortunate transition like `-z start-stop-gc`, the affected software (e.g. ldc is a compiler which passes linker options to the underlying ld) can blindly add the `-z` option, without worrying it may cause a linker error to LLD 14.0.0. Reviewed By: jrtc27, peter.smith Differential Revision: https://reviews.llvm.org/D114748 GitOrigin-RevId: 8c3641d03ec0cb0e8730cad349b54d67581b4c73
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f
.