[all-commits] [llvm/llvm-project] c75eac: [LLD][COFF] Don't dllimport from static libraries ...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Mon Apr 7 08:34:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c75eac7c0347b2df88773983bef1e72cb53ad35d
      https://github.com/llvm/llvm-project/commit/c75eac7c0347b2df88773983bef1e72cb53ad35d
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M lld/COFF/Driver.cpp
    M lld/COFF/SymbolTable.cpp
    M lld/COFF/SymbolTable.h
    A lld/test/COFF/imports-static-lib-indirect.test
    A lld/test/COFF/imports-static-lib.test
    R lld/test/COFF/undefined_lazy.test

  Log Message:
  -----------
  [LLD][COFF] Don't dllimport from static libraries (#134443)

This reverts commit 6a1bdd9 and re-instate behavior that matches what
MSVC link.exe does, that is, error out when trying to dllimport a symbol
from a static library.

A hint is now displayed in stdout, mentioning that we should rather dllimport the symbol
from a import library.

Fixes https://github.com/llvm/llvm-project/issues/131807



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list