Parsed alignment should be a power of 2.
authorPete Cooper <peter_cooper@apple.com>
Thu, 24 Mar 2016 00:36:37 +0000 (00:36 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 24 Mar 2016 00:36:37 +0000 (00:36 +0000)
commit3f564a52d074adc5b94c08968c59f70ea8d4fb70
tree52ea48c1526a0f1b792f9131606b2bd3b2066e8d
parent0945a64767d9c79ee97833b9f9ab15264be74ee1
Parsed alignment should be a power of 2.

The .o path always makes sure to store a power of 2 value in the
Section alignment.  However, the YAML code didn't verify this.

Added verification and updated all the tests which had a 3 but meant
to have 2^3.

llvm-svn: 264228
14 files changed:
lld/lib/ReaderWriter/MachO/MachONormalizedFile.h
lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml
lld/test/mach-o/dso_handle.yaml
lld/test/mach-o/hello-world-x86_64.yaml
lld/test/mach-o/interposing-section.yaml
lld/test/mach-o/mh_bundle_header.yaml
lld/test/mach-o/mh_dylib_header.yaml
lld/test/mach-o/objc_export_list.yaml
lld/test/mach-o/parse-cfstring32.yaml
lld/test/mach-o/parse-compact-unwind64.yaml
lld/test/mach-o/parse-data.yaml
lld/test/mach-o/parse-eh-frame.yaml
lld/test/mach-o/unwind-info-simple-arm64.yaml