]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add support for IMPORT_NAME_EXPORTAS in ILF (MSVC style) import libraries
authorMartin Storsjö <martin@martin.st>
Fri, 20 Sep 2024 21:47:21 +0000 (00:47 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 2 Oct 2024 08:50:12 +0000 (11:50 +0300)
commit042f14505edb496955306595cadc269f72eaf239
tree0b769c16f40f1a8b8709309df18b8be4a643f8b3
parent2754d75a11556577fcddf23718bfbff7d0489a3f
Add support for IMPORT_NAME_EXPORTAS in ILF (MSVC style) import libraries

This import name type is formally yet undocumented, but MSVC
produces/supports it, primarily for ARM64EC import libraries.

LLVM/LLD also supports this import name type. Since recently,
llvm-dlltool also uses this type for certain kinds of renamed imports
(that are easy to do in the long style import libraries produced by
GNU dlltool, but require this name type in short import libraries).

This name type contains a third string, in addition to the symbol
name and the DLL name, indicating the actual imported name to
reference in the import tables - which now can be distinct different
from the symbol name on the object file level.

https://github.com/llvm/llvm-project/commit/8f23464a5d957242c89ca6f33d4379c42519cd81
and
https://github.com/llvm/llvm-project/commit/7b275aa2438c22604505d618dd37ee60052f2800
show how this import name type was added in LLVM.

Signed-off-by: Martin Storsjö <martin@martin.st>
bfd/peicode.h
include/coff/pe.h