[lld-macho][easy] Fix segment max protection
authorJez Ng <jezng@fb.com>
Wed, 14 Oct 2020 19:46:49 +0000 (12:46 -0700)
committerJez Ng <jezng@fb.com>
Tue, 10 Nov 2020 20:19:28 +0000 (12:19 -0800)
commit6cf244327b0da1f0b5c40015dd19d5cb2bdd5e93
tree660190ce837c1950e0cdec5281414dfc53ee1240
parentb86908171ea81a57f11fb29960328f57aaa9e7f9
[lld-macho][easy] Fix segment max protection

We should have maxprot == initprot for all non-i386 architectures, which
is what ld64 does.

Reviewed By: #lld-macho, compnerd

Differential Revision: https://reviews.llvm.org/D89420
lld/MachO/OutputSegment.cpp
lld/test/MachO/segments.s