From d9e0f71195e254012221666f536a247dbefa599b Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Thu, 11 Aug 2016 18:46:21 +0000 Subject: [PATCH] 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 --- lld/test/mach-o/Inputs/arm64/libSystem.yaml | 11 ++++++----- lld/test/mach-o/Inputs/armv7/libSystem.yaml | 11 ++++++----- lld/test/mach-o/Inputs/x86/libSystem.yaml | 11 ++++++----- lld/test/mach-o/Inputs/x86_64/libSystem.yaml | 11 ++++++----- 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 ab95403..76cba1b 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 ab95403..2539f90 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 ab95403..87a4895 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 ab95403..fbbf794 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 ... -- 2.7.4