[mach-o] Refactor sections -> atoms to be table driven.

Previously each section kind had its own code to loop over the section and
parse it into atoms.  This refactoring has two tables.  The first maps sections
to ContentType.  The second maps ContentType to information on how to find 
the atom boundaries.  

A few bugs in test cases were discovered as part of the refactoring.  
No change in functionality intended.




git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210138 91177308-0d34-0410-b5e6-96231b3b80d8