[lld-macho] Error on encountering undefined symbols
authorJez Ng <jezng@fb.com>
Mon, 18 May 2020 22:46:33 +0000 (15:46 -0700)
committerJez Ng <jezng@fb.com>
Tue, 2 Jun 2020 20:19:38 +0000 (13:19 -0700)
commitdf2a5778c32bb0757448f667d570d4e5fd18c16e
treeee0730781917cdbcc8a9b7b63ed4df5d2018b5c2
parent6f6d91867da1bbdd13379a7aac8d6d2526672783
[lld-macho] Error on encountering undefined symbols

... instead of silently emitting a reference to the zero address.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D80169
lld/MachO/InputSection.cpp
lld/MachO/Writer.cpp
lld/test/MachO/invalid/undefined-symbol.s [new file with mode: 0644]