diff options
author | Kevin Enderby <enderby@apple.com> | 2016-06-17 22:16:06 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2016-06-17 22:16:06 +0000 |
commit | ae108ffb9a377b589acbe801a744cb1afef61c46 (patch) | |
tree | 225f84a5204318db70c87e6714ea36fa7a4f6493 /llvm/test/Object | |
parent | 6fa1546ad9f07263c384e0ba5a6f92e197934711 (diff) | |
download | bcm5719-llvm-ae108ffb9a377b589acbe801a744cb1afef61c46.tar.gz bcm5719-llvm-ae108ffb9a377b589acbe801a744cb1afef61c46.zip |
Add support for Darwin’s static library table of contents with 64-bit offsets to the archive members.
Darwin added support in its Xcode 8.0 tools (released in the beta) for static
library table of contents with 64-bit offsets to the archive members. The
change is very straight forward. The table of contents member is named
___.SYMDEF_64 or "___.SYMDEF_64 SORTED" and same layout is used but with
fields using 64 bit values instead of 32 bit values.
rdar://26869808
llvm-svn: 273058
Diffstat (limited to 'llvm/test/Object')
-rw-r--r-- | llvm/test/Object/Inputs/macho-toc64-archive-x86_64.a | bin | 0 -> 1576 bytes | |||
-rw-r--r-- | llvm/test/Object/archive-symtab.test | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/macho-toc64-archive-x86_64.a b/llvm/test/Object/Inputs/macho-toc64-archive-x86_64.a Binary files differnew file mode 100644 index 00000000000..e73f3dce6bd --- /dev/null +++ b/llvm/test/Object/Inputs/macho-toc64-archive-x86_64.a diff --git a/llvm/test/Object/archive-symtab.test b/llvm/test/Object/archive-symtab.test index 6bad783a8c8..0fcf9adf916 100644 --- a/llvm/test/Object/archive-symtab.test +++ b/llvm/test/Object/archive-symtab.test @@ -99,6 +99,12 @@ MACHO-NEXT: 0000000000000000 t _bar MACHO-NEXT: 0000000000000001 T _foo MACHO-NEXT: 0000000000000002 T _main +RUN: llvm-nm -M %p/Inputs/macho-toc64-archive-x86_64.a | FileCheck --check-prefix=MACHO-TOC64 %s + +MACHO-TOC64: Archive map +MACHO-TOC64-NEXT: _test in test.o +MACHO-TOC64-NEXT: _test in xtest.o + RUN: rm -f %t.a RUN: llvm-ar --format=gnu rcsU %t.a %p/Inputs/coff-short-import-code %p/Inputs/coff-short-import-data RUN: llvm-nm -M %t.a | FileCheck --check-prefix=COFF-SHORT-IMPORT %s |