[lld] fc968bc - [lld-macho][nfc] Fix formatting in ld64-vs-lld.rst
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 10 15:33:21 PST 2022
Author: Jez Ng
Date: 2022-03-10T18:33:18-05:00
New Revision: fc968bcba4d7e02390f1c1cba76a6a2cad1ae59f
URL: https://github.com/llvm/llvm-project/commit/fc968bcba4d7e02390f1c1cba76a6a2cad1ae59f
DIFF: https://github.com/llvm/llvm-project/commit/fc968bcba4d7e02390f1c1cba76a6a2cad1ae59f.diff
LOG: [lld-macho][nfc] Fix formatting in ld64-vs-lld.rst
Added:
Modified:
lld/MachO/ld64-vs-lld.rst
Removed:
################################################################################
diff --git a/lld/MachO/ld64-vs-lld.rst b/lld/MachO/ld64-vs-lld.rst
index 485501494805d..3601c224f95b0 100644
--- a/lld/MachO/ld64-vs-lld.rst
+++ b/lld/MachO/ld64-vs-lld.rst
@@ -4,12 +4,12 @@ LD64 vs LLD-MACHO
This doc lists all significant deliberate
diff erences in behavior between LD64 and LLD-MachO.
-String literal deduplication
+String Literal Deduplication
****************************
-LD64 always deduplicates string literals. LLD only does it when the `--icf=` or
-the `--deduplicate-literals` flag is passed. Omitting deduplication by default
-ensures that our link is as fast as possible. However, it may also break some
-programs which have (incorrectly) relied on string deduplication always
+LD64 always deduplicates string literals. LLD only does it when the ``--icf=``
+or the ``--deduplicate-literals`` flag is passed. Omitting deduplication by
+default ensures that our link is as fast as possible. However, it may also break
+some programs which have (incorrectly) relied on string deduplication always
occurring. In particular, programs which compare string literals via pointer
equality must be fixed to use value equality instead.
@@ -20,13 +20,13 @@ them more compactly. This should not result in any meaningful semantic
diff erence.
``-no_deduplicate`` Flag
-**********************
+************************
- LD64:
* This turns off ICF (deduplication pass) in the linker.
- LLD
* This turns off ICF and string merging in the linker.
-ObjC symbols treatment
+ObjC Symbols Treatment
**********************
There are
diff erences in how LLD and LD64 handle ObjC symbols loaded from archives.
More information about the llvm-commits
mailing list