summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-08-11 18:46:21 +0000
committerPete Cooper <peter_cooper@apple.com>2016-08-11 18:46:21 +0000
commitd9e0f71195e254012221666f536a247dbefa599b (patch)
tree1c97335280aefced927ea0e3da43d92b9fa21da6
parent363e7f69140c498860923b3ec6afc7e8d51ccde6 (diff)
downloadbcm5719-llvm-d9e0f71195e254012221666f536a247dbefa599b.tar.gz
bcm5719-llvm-d9e0f71195e254012221666f536a247dbefa599b.zip
Change all the libSystem test files to be dylibs instead of normalized files. Currently NFC.
A future commit will change when we choose to add an LC_LOAD_DYLIB to the final image. Currently we do this when an atom is used, but we need to do it when a dylib is referenced on the cmdline as this matches ld64. To allow this change, libsystem (and other future yaml files representing dylibs) need to be dylibs so that the loader can see to add them to the referenced dylib list. llvm-svn: 278386
-rw-r--r--lld/test/mach-o/Inputs/arm64/libSystem.yaml11
-rw-r--r--lld/test/mach-o/Inputs/armv7/libSystem.yaml11
-rw-r--r--lld/test/mach-o/Inputs/x86/libSystem.yaml11
-rw-r--r--lld/test/mach-o/Inputs/x86_64/libSystem.yaml11
4 files changed, 24 insertions, 20 deletions
diff --git a/lld/test/mach-o/Inputs/arm64/libSystem.yaml b/lld/test/mach-o/Inputs/arm64/libSystem.yaml
index ab954037480..76cba1bc325 100644
--- a/lld/test/mach-o/Inputs/arm64/libSystem.yaml
+++ b/lld/test/mach-o/Inputs/arm64/libSystem.yaml
@@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder.
#
-shared-library-atoms:
- - name: dyld_stub_binder
- load-name: /usr/lib/libSystem.B.dylib
- type: code
- size: 0
+--- !mach-o
+arch: arm64
+file-type: MH_DYLIB
+install-name: /usr/lib/libSystem.B.dylib
+exports:
+ - name: dyld_stub_binder
...
diff --git a/lld/test/mach-o/Inputs/armv7/libSystem.yaml b/lld/test/mach-o/Inputs/armv7/libSystem.yaml
index ab954037480..2539f900354 100644
--- a/lld/test/mach-o/Inputs/armv7/libSystem.yaml
+++ b/lld/test/mach-o/Inputs/armv7/libSystem.yaml
@@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder.
#
-shared-library-atoms:
- - name: dyld_stub_binder
- load-name: /usr/lib/libSystem.B.dylib
- type: code
- size: 0
+--- !mach-o
+arch: armv7
+file-type: MH_DYLIB
+install-name: /usr/lib/libSystem.B.dylib
+exports:
+ - name: dyld_stub_binder
...
diff --git a/lld/test/mach-o/Inputs/x86/libSystem.yaml b/lld/test/mach-o/Inputs/x86/libSystem.yaml
index ab954037480..87a4895c9f4 100644
--- a/lld/test/mach-o/Inputs/x86/libSystem.yaml
+++ b/lld/test/mach-o/Inputs/x86/libSystem.yaml
@@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder.
#
-shared-library-atoms:
- - name: dyld_stub_binder
- load-name: /usr/lib/libSystem.B.dylib
- type: code
- size: 0
+--- !mach-o
+arch: x86
+file-type: MH_DYLIB
+install-name: /usr/lib/libSystem.B.dylib
+exports:
+ - name: dyld_stub_binder
...
diff --git a/lld/test/mach-o/Inputs/x86_64/libSystem.yaml b/lld/test/mach-o/Inputs/x86_64/libSystem.yaml
index ab954037480..fbbf794f326 100644
--- a/lld/test/mach-o/Inputs/x86_64/libSystem.yaml
+++ b/lld/test/mach-o/Inputs/x86_64/libSystem.yaml
@@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder.
#
-shared-library-atoms:
- - name: dyld_stub_binder
- load-name: /usr/lib/libSystem.B.dylib
- type: code
- size: 0
+--- !mach-o
+arch: x86_64
+file-type: MH_DYLIB
+install-name: /usr/lib/libSystem.B.dylib
+exports:
+ - name: dyld_stub_binder
...
OpenPOWER on IntegriCloud