[PATCH] D64288: [LLD] [COFF] Share the tail in delayimport symbol thunks

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 6 12:49:38 PDT 2019


mstorsjo created this revision.
mstorsjo added reviewers: ruiu, rnk, pcc.
Herald added a subscriber: javed.absar.
Herald added a project: LLVM.

E.g. for x86_64, previously each symbol's thunk was 87 bytes. Now there's a 12 byte thunk per symbol, plus a shared 83 byte tail function.

This is similar to what both MS link.exe and GNU tools do for delay imports.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D64288

Files:
  COFF/DLL.cpp
  COFF/DLL.h
  test/COFF/arm64-delayimport.yaml
  test/COFF/delayimports-armnt.yaml
  test/COFF/delayimports.test
  test/COFF/delayimports32.test
  test/COFF/delayimporttables.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64288.208277.patch
Type: text/x-patch
Size: 19829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190706/e129e984/attachment.bin>


More information about the llvm-commits mailing list