Have one version of libSystem for each arch. NFC.
authorPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 18:08:59 +0000 (18:08 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 18:08:59 +0000 (18:08 +0000)
commitc4a12a08e2c91f44375c74bb64279ca42dabf21d
treec3a9e5f913aff0bc050200c273749b72916a0083
parent6ba19659cb7c4b08828b187dc8e4b45531d0e6a6
Have one version of libSystem for each arch.  NFC.

An upcoming commit will change how we choose to reference a dylib.  Currently
dylibs are only given an LC_LOAD_DYLIB in the final image if an atom is used.
This is different from ld64 which adds the load command when the dylib is referenced
on the cmdline.

In order to change this behaviour, we need libSystem.yaml to actually contain a mach header
so that it is parsed as a dylib, instead of currently being parsed as a normalised file.

To get a mach header, we also require an arch, so now we have one libsystem per arch and
all the tests have been updated to choose the correct one.

llvm-svn: 278372
48 files changed:
lld/test/mach-o/Inputs/arm64/libSystem.yaml [moved from lld/test/mach-o/Inputs/libSystem.yaml with 98% similarity]
lld/test/mach-o/Inputs/armv7/libSystem.yaml [new file with mode: 0644]
lld/test/mach-o/Inputs/x86/libSystem.yaml [new file with mode: 0644]
lld/test/mach-o/Inputs/x86_64/libSystem.yaml [new file with mode: 0644]
lld/test/mach-o/arm-interworking-movw.yaml
lld/test/mach-o/arm-interworking.yaml
lld/test/mach-o/arm-shims.yaml
lld/test/mach-o/data-in-code-load-command.yaml
lld/test/mach-o/data-only-dylib.yaml
lld/test/mach-o/dead-strip-globals.yaml
lld/test/mach-o/debug-syms.yaml
lld/test/mach-o/demangle.yaml
lld/test/mach-o/dso_handle.yaml
lld/test/mach-o/dylib-install-names.yaml
lld/test/mach-o/exe-offsets.yaml
lld/test/mach-o/exe-segment-overlap.yaml
lld/test/mach-o/executable-exports.yaml
lld/test/mach-o/exported_symbols_list-dylib.yaml
lld/test/mach-o/exported_symbols_list-undef.yaml
lld/test/mach-o/fat-archive.yaml
lld/test/mach-o/flat_namespace_undef_error.yaml
lld/test/mach-o/flat_namespace_undef_suppress.yaml
lld/test/mach-o/force_load-dylib.yaml
lld/test/mach-o/force_load-x86_64.yaml
lld/test/mach-o/function-starts-load-command.yaml
lld/test/mach-o/gcc_except_tab-got-arm64.yaml
lld/test/mach-o/got-order.yaml
lld/test/mach-o/image-base.yaml
lld/test/mach-o/interposing-section.yaml
lld/test/mach-o/lazy-bind-x86_64.yaml
lld/test/mach-o/library-order.yaml
lld/test/mach-o/library-rescan.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/order_file-basic.yaml
lld/test/mach-o/parse-data-in-code-armv7.yaml
lld/test/mach-o/rpath.yaml
lld/test/mach-o/sectalign.yaml
lld/test/mach-o/sectattrs.yaml
lld/test/mach-o/source-version.yaml
lld/test/mach-o/stack-size.yaml
lld/test/mach-o/twolevel_namespace_undef_dynamic_lookup.yaml
lld/test/mach-o/twolevel_namespace_undef_warning_suppress.yaml
lld/test/mach-o/unwind-info-simple-arm64.yaml
lld/test/mach-o/unwind-info-simple-x86_64.yaml
lld/test/mach-o/upward-dylib-load-command.yaml
lld/test/mach-o/version-min-load-command.yaml