[lld] r233154 - Add a test for r233128: PECOFF: Reduce import table size.

Rui Ueyama ruiu at google.com
Tue Mar 24 17:18:17 PDT 2015


Author: ruiu
Date: Tue Mar 24 19:18:16 2015
New Revision: 233154

URL: http://llvm.org/viewvc/llvm-project?rev=233154&view=rev
Log:
Add a test for r233128: PECOFF: Reduce import table size.

This test checks for the size of .idata section. Before r233128,
the size of the section is 0x45, but it's now 0x27.

Modified:
    lld/trunk/test/pecoff/importlib.test

Modified: lld/trunk/test/pecoff/importlib.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/importlib.test?rev=233154&r1=233153&r2=233154&view=diff
==============================================================================
--- lld/trunk/test/pecoff/importlib.test (original)
+++ lld/trunk/test/pecoff/importlib.test Tue Mar 24 19:18:16 2015
@@ -9,6 +9,7 @@
 # RUN:   -- %t.obj %p/Inputs/vars.lib
 # RUN: llvm-objdump -d %t1.exe | FileCheck -check-prefix=TEXT %s
 # RUN: llvm-readobj -coff-imports %t1.exe | FileCheck -check-prefix=IMPORT %s
+# RUN: llvm-readobj -sections %t1.exe | FileCheck -check-prefix=SIZE %s
 #
 # RUN: lld -flavor link /out:%t2.exe /subsystem:console /entry:main /opt:noref \
 # RUN:   /libpath:%p/Inputs -- %t.obj vars.lib
@@ -53,3 +54,8 @@ IMPORT-NEXT:   Symbol: _name_with_unders
 IMPORT-NEXT:   Symbol: fn (1)
 IMPORT-NEXT:   Symbol:  (1)
 IMPORT-NEXT: }
+
+SIZE:      Section {
+SIZE-NEXT:   Number: 1
+SIZE-NEXT:   Name: .idata (2E 69 64 61 74 61 00 00)
+SIZE-NEXT:   VirtualSize: 0x27





More information about the llvm-commits mailing list