diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2022-12-21 15:48:28 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2022-12-22 15:52:46 -0800 |
commit | 2e5989e8140d408cb13181430f60b6adfbf49d43 (patch) | |
tree | e9c9bbba6cb49b147db4becb68d80a6757dca59c /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | 85bb24ab5202d7981ec0e69514e308cb1fa46464 (diff) | |
download | llvm-2e5989e8140d408cb13181430f60b6adfbf49d43.zip llvm-2e5989e8140d408cb13181430f60b6adfbf49d43.tar.gz llvm-2e5989e8140d408cb13181430f60b6adfbf49d43.tar.bz2 |
[lld-macho] Flip string deduplication default
Previously by default, when not using `--ifc=`, lld would not
deduplicate string literals. This reveals reliance on undefined behavior
where string literal addresses are compared instead of using string
equality checks. While ideally you would be able to easily identify and
eliminate the reliance on this UB, this can be difficult, especially for
third party code, and increases the friction and risk of users migrating
to lld. This flips the default to deduplicate strings unless
`--no-deduplicate-strings` is passed, matching ld64's behavior.
Differential Revision: https://reviews.llvm.org/D140517
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions