Until recently yaml2obj didn't properly support relocations for MachO and whenever it saw nreloc != 0 and reloff != 0 it was populating those bytes with 0s. This behavior results in binaries having invalid relocations, e.g. if r_extern == 0 then r_symbolnum should be >= 1 (because in this case r_symbolnum is supposed to be an index of a section and for MachO section indices start from 1), but it's equal to 0.
In this diff we adjust the existing tests (for the tests which don't actually look at any relocations at all - we remove them
(this causes the binary to shrink a little bit), for the tests which essentially depend on relocations - we fix them).
This change is a preparation to unblock https://reviews.llvm.org/D71647 .
Test plan: make check-all
I don't think it makes much difference for this test, but would it be better/more realistic to have some of these pointing to different symbols?