bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30421] New: Symbols in import lib are influenced by .def f


From: luca.bacci at outlook dot com
Subject: [Bug binutils/30421] New: Symbols in import lib are influenced by .def file
Date: Thu, 04 May 2023 19:52:07 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30421

            Bug ID: 30421
           Summary: Symbols in import lib are influenced by .def file
           Product: binutils
           Version: 2.39
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: luca.bacci at outlook dot com
  Target Milestone: ---

Hello!

I'm experiencing an issue when building a shared library / DLL for the x86
architecture using gcc. All public functions use the __stdcall calling
convention and are exported using a .def file so to have undecorated names in
the resulting DLL. That is helpful for users that want to use GetProcAddress().

However gcc generates an import lib with undecorated names also in the symbols
table. That causes linking errors, because the compiler can only know about
decorated symbols.

The error doesn't happen when building with other compilers like clang or msvc.
The resulting import libraries always have decorated symbols.

See also the relevant discussion at
https://sourceforge.net/p/mingw-w64/mailman/message/37839853/

Thank you very much!
Luca Bacci

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]