summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/coff-short-import-codebin0 -> 31 bytes
-rw-r--r--llvm/test/Object/Inputs/coff-short-import-databin0 -> 31 bytes
-rw-r--r--llvm/test/Object/archive-symtab.test10
3 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/coff-short-import-code b/llvm/test/Object/Inputs/coff-short-import-code
new file mode 100644
index 00000000000..446279037b5
--- /dev/null
+++ b/llvm/test/Object/Inputs/coff-short-import-code
Binary files differ
diff --git a/llvm/test/Object/Inputs/coff-short-import-data b/llvm/test/Object/Inputs/coff-short-import-data
new file mode 100644
index 00000000000..71b635ba192
--- /dev/null
+++ b/llvm/test/Object/Inputs/coff-short-import-data
Binary files differ
diff --git a/llvm/test/Object/archive-symtab.test b/llvm/test/Object/archive-symtab.test
index c50833d6a77..120401bad36 100644
--- a/llvm/test/Object/archive-symtab.test
+++ b/llvm/test/Object/archive-symtab.test
@@ -99,6 +99,16 @@ MACHO-NEXT: 0000000000000000 t _bar
MACHO-NEXT: 0000000000000001 T _foo
MACHO-NEXT: 0000000000000002 T _main
+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
+
+COFF-SHORT-IMPORT: Archive map
+COFF-SHORT-IMPORT-NEXT: _foo in coff-short-import-code
+COFF-SHORT-IMPORT-NEXT: __imp__foo in coff-short-import-code
+COFF-SHORT-IMPORT-NEXT: _bar in coff-short-import-data
+COFF-SHORT-IMPORT-NOT: __imp__bar in coff-short-import-data
+
Test that we pad the symbol table so that it ends in a multiple of 4 bytes:
8 + 60 + 36 == 104
RUN: rm -f %t.a
OpenPOWER on IntegriCloud