[lld-macho] Have inputOrder default to less than INT_MAX
authorJez Ng <jezng@fb.com>
Sun, 20 Jun 2021 23:49:13 +0000 (19:49 -0400)
committerJez Ng <jezng@fb.com>
Sun, 20 Jun 2021 23:49:27 +0000 (19:49 -0400)
commitf79e7a5a48181b5d7ff3170f1617e4f7ba8d0fb8
tree1c4241e6ffbaafbd9d8e152c17186df4d6e0ac6c
parent89e66a3ab3b2958285842ed3705b2264c0f67473
[lld-macho] Have inputOrder default to less than INT_MAX

We make it less than INT_MAX in order not to conflict with the ordering
of zerofill sections, which must always be placed at the end of their
segment.

This is the more structural fix for the issue addressed in {D104596}.

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D104607
lld/MachO/Driver.cpp
lld/MachO/OutputSection.h
lld/MachO/OutputSegment.h