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
This commit is contained in:
Pete Cooper 2016-08-11 18:46:21 +00:00
parent 363e7f6914
commit d9e0f71195
4 changed files with 24 additions and 20 deletions

View File

@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder. # and therefore will need a dylib definition of dyld_stub_binder.
# #
shared-library-atoms: --- !mach-o
- name: dyld_stub_binder arch: arm64
load-name: /usr/lib/libSystem.B.dylib file-type: MH_DYLIB
type: code install-name: /usr/lib/libSystem.B.dylib
size: 0 exports:
- name: dyld_stub_binder
... ...

View File

@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder. # and therefore will need a dylib definition of dyld_stub_binder.
# #
shared-library-atoms: --- !mach-o
- name: dyld_stub_binder arch: armv7
load-name: /usr/lib/libSystem.B.dylib file-type: MH_DYLIB
type: code install-name: /usr/lib/libSystem.B.dylib
size: 0 exports:
- name: dyld_stub_binder
... ...

View File

@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder. # and therefore will need a dylib definition of dyld_stub_binder.
# #
shared-library-atoms: --- !mach-o
- name: dyld_stub_binder arch: x86
load-name: /usr/lib/libSystem.B.dylib file-type: MH_DYLIB
type: code install-name: /usr/lib/libSystem.B.dylib
size: 0 exports:
- name: dyld_stub_binder
... ...

View File

@ -3,10 +3,11 @@
# and therefore will need a dylib definition of dyld_stub_binder. # and therefore will need a dylib definition of dyld_stub_binder.
# #
shared-library-atoms: --- !mach-o
- name: dyld_stub_binder arch: x86_64
load-name: /usr/lib/libSystem.B.dylib file-type: MH_DYLIB
type: code install-name: /usr/lib/libSystem.B.dylib
size: 0 exports:
- name: dyld_stub_binder
... ...