[all-commits] [llvm/llvm-project] c67610: [lld-macho] Implement symbol string deduplication ...

alx32 via All-commits all-commits at lists.llvm.org
Thu Jan 23 15:48:33 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c676104875f34a87051b446469cc395932bc1f13
      https://github.com/llvm/llvm-project/commit/c676104875f34a87051b446469cc395932bc1f13
  Author: alx32 <103613512+alx32 at users.noreply.github.com>
  Date:   2025-01-23 (Thu, 23 Jan 2025)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/SyntheticSections.h
    M lld/test/MachO/cfstring-dedup.s

  Log Message:
  -----------
  [lld-macho] Implement symbol string deduplication (#123874)

The symbol string table does not have deduplication. 
Here we add code to deduplicate the symbol string table. 
This has a rather large size impact (20-30%) on unstripped binaries
(typically debug binaries) but no size impact on stripped
binaries(typically release binaries).

We enable deduplication by default and add a flag to disable it
(`-no-deduplicate-symbol-strings`).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list