summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-09-01 06:01:53 +0000
committerRui Ueyama <ruiu@google.com>2015-09-01 06:01:53 +0000
commitb355fd030890020e1fa70f66e0c9e45146bcb125 (patch)
tree688ce1d45701d32b7e618c67c78e8ccedbb00742 /llvm/test/Object
parent1ded69870e144e75b7a812411e67cace4174695e (diff)
downloadbcm5719-llvm-b355fd030890020e1fa70f66e0c9e45146bcb125.tar.gz
bcm5719-llvm-b355fd030890020e1fa70f66e0c9e45146bcb125.zip
Object: Fix COFF import file's symbols.
If a symbol is marked as "data", the symbol should be exported with __imp_ prefix. Previously, the symbol was exported as-is. llvm-svn: 246532
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/archive-symtab.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Object/archive-symtab.test b/llvm/test/Object/archive-symtab.test
index 120401bad36..c9e89005d6c 100644
--- a/llvm/test/Object/archive-symtab.test
+++ b/llvm/test/Object/archive-symtab.test
@@ -104,10 +104,10 @@ RUN: llvm-ar --format=gnu rcsU %t.a %p/Inputs/coff-short-import-code %p/Inputs/c
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
+COFF-SHORT-IMPORT-NEXT: _foo in coff-short-import-code
+COFF-SHORT-IMPORT-NEXT: __imp__bar in coff-short-import-data
+COFF-SHORT-IMPORT-NOT: _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
OpenPOWER on IntegriCloud