aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2022-12-21 15:48:28 -0800
committerKeith Smiley <keithbsmiley@gmail.com>2022-12-22 15:52:46 -0800
commit2e5989e8140d408cb13181430f60b6adfbf49d43 (patch)
treee9c9bbba6cb49b147db4becb68d80a6757dca59c /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent85bb24ab5202d7981ec0e69514e308cb1fa46464 (diff)
downloadllvm-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