[lld-macho] Ensure .tbss sections are also considered as ZeroFilled
authorJez Ng <jezng@fb.com>
Fri, 7 Aug 2020 18:04:41 +0000 (11:04 -0700)
committerJez Ng <jezng@fb.com>
Fri, 7 Aug 2020 18:04:41 +0000 (11:04 -0700)
commit4e43f1804817b36fee62aeb7e1eb1602245efdb6
tree7430f3ddd85ccc5f8fe02520a7176f7470175a4d
parent911565d1085d9447363fe8ad041817436c4998fe
[lld-macho] Ensure .tbss sections are also considered as ZeroFilled

This diff makes the behavior in {D80859} and {D81888} apply to
thread-local ZeroFill sections too. I realized this was necessary whie
trying to implement thread-local variables.

Reviewed By: #lld-macho, compnerd, MaskRay

Differential Revision: https://reviews.llvm.org/D85079
lld/MachO/InputSection.h
lld/test/MachO/bss.s