[mach-o] Make anonymous atom out of section content before any symbol
authorNick Kledzik <kledzik@apple.com>
Wed, 4 Jun 2014 00:34:27 +0000 (00:34 +0000)
committerNick Kledzik <kledzik@apple.com>
Wed, 4 Jun 2014 00:34:27 +0000 (00:34 +0000)
commita2d602560beb335cd443ccc03a41ecf714f337bb
treee314524adb62f47d9d3a03a8ab6b16320dbf090b
parente9af3164237f16a35e6f57c06f09b20cb7b4b622
[mach-o] Make anonymous atom out of section content before any symbol

In sections that are broken into atoms at symbols, if the first symbol in the
section is not at the start of the section, then make an anonymous atom for
the section content that is before the first symbol.

llvm-svn: 210142
lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
lld/test/mach-o/parse-function.yaml