[lld] r222116 - [PECOFF] Fix 32-bit delay-import table.
Rui Ueyama
ruiu at google.com
Sun Nov 16 18:04:54 PST 2014
Author: ruiu
Date: Sun Nov 16 20:04:54 2014
New Revision: 222116
URL: http://llvm.org/viewvc/llvm-project?rev=222116&view=rev
Log:
[PECOFF] Fix 32-bit delay-import table.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/IdataPass.cpp
lld/trunk/test/pecoff/delayimport.test
Modified: lld/trunk/lib/ReaderWriter/PECOFF/IdataPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/IdataPass.cpp?rev=222116&r1=222115&r2=222116&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/IdataPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/IdataPass.cpp Sun Nov 16 20:04:54 2014
@@ -188,7 +188,7 @@ void DelayImportDirectoryAtom::addReloca
if (context.ctx.is64Bit())
addDir64Reloc(addrTable[i], loader, context.ctx.getMachineType(), 0);
else
- addDir32NBReloc(addrTable[i], loader, context.ctx.getMachineType(), 0);
+ addDir32Reloc(addrTable[i], loader, context.ctx.getMachineType(), 0);
}
}
Modified: lld/trunk/test/pecoff/delayimport.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/delayimport.test?rev=222116&r1=222115&r2=222116&view=diff
==============================================================================
--- lld/trunk/test/pecoff/delayimport.test (original)
+++ lld/trunk/test/pecoff/delayimport.test Sun Nov 16 20:04:54 2014
@@ -19,15 +19,15 @@ X86-NEXT: BoundDelayImportTable: 0x0
X86-NEXT: UnloadDelayImportTable: 0x0
X86-NEXT: Import {
X86-NEXT: Symbol: _name_with_underscore (0)
-X86-NEXT: Address: 0x501F
+X86-NEXT: Address: 0x40501F
X86-NEXT: }
X86-NEXT: Import {
X86-NEXT: Symbol: fn (1)
-X86-NEXT: Address: 0x5034
+X86-NEXT: Address: 0x405034
X86-NEXT: }
X86-NEXT: Import {
X86-NEXT: Symbol: (1)
-X86-NEXT: Address: 0x5049
+X86-NEXT: Address: 0x405049
X86-NEXT: }
X86-NEXT: }
More information about the llvm-commits
mailing list