[lld-macho] Preserve the size of common symbols
authorJez Ng <jezng@fb.com>
Thu, 13 Oct 2022 20:44:33 +0000 (16:44 -0400)
committerJez Ng <jezng@fb.com>
Thu, 13 Oct 2022 20:44:33 +0000 (16:44 -0400)
commit922346ef052f05cfef79b184740217b75647fa34
tree8b2a1089d75ed076bf0b3d9dea10a27c20c00727
parentbdd0cec5697f1df988cda1b5305fe9a8b869a680
[lld-macho] Preserve the size of common symbols

We never noticed this before because the only time the size gets emitted is via
the linker map...

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D135884
lld/MachO/Driver.cpp
lld/test/MachO/dead-strip.s
lld/test/MachO/map-file.s