[PATCH] D136001: [lld-macho] Folded symbols should have size zero in linker map

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 17:06:34 PDT 2022


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added projects: lld-macho, All.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This matches ld64's behavior.

I also extended the icf-stabs.s test to demonstrate that even though
folded symbols have size zero, we cannot use the size-zero property in
lieu of `wasIdenticalCodeFolded`, because size zero symbols should still
get STABS entries.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136001

Files:
  lld/MachO/InputSection.cpp
  lld/test/MachO/map-file.s
  lld/test/MachO/stabs-icf.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136001.467972.patch
Type: text/x-patch
Size: 5043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221015/4da26d5b/attachment.bin>


More information about the llvm-commits mailing list