[Bug ld/30421] Symbols in import lib are influenced by .def file

2023-12-08 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 Luca Bacci changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/30421] Symbols in import lib are influenced by .def file

2023-05-15 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 --- Comment #5 from Luca Bacci --- Ah, true! I have now sent an email: https://sourceware.org/pipermail/binutils/2023-May/127440.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30421] Symbols in import lib are influenced by .def file

2023-05-13 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 Luca Bacci changed: What|Removed |Added Attachment #14877|0 |1 is obsolete|

[Bug ld/30421] Symbols in import lib are influenced by .def file

2023-05-12 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 --- Comment #2 from Luca Bacci --- Created attachment 14877 --> https://sourceware.org/bugzilla/attachment.cgi?id=14877=edit draft patch -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30421] Symbols in import lib are influenced by .def file

2023-05-12 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 Luca Bacci changed: What|Removed |Added Component|binutils|ld -- You are receiving this mail

[Bug binutils/30421] Symbols in import lib are influenced by .def file

2023-05-04 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30421 --- Comment #1 from Luca Bacci --- As linked in the discussion, there's a sample repo at https://github.com/lb90/my-shared-lib Another report of the issue is at https://github.com/KhronosGroup/OpenCL-ICD-Loader/issues/191 Thanks, Luca --

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

2023-05-04 Thread luca.bacci at outlook dot com
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

[Bug binutils/29389] pe renaming implib breaks bfd/cache.c reopening of closed archives

2022-08-04 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #33 from Luca Bacci --- Alright, we already have a PR in MSYS2: https://github.com/msys2/MINGW-packages/pull/12426 Cheers! Luca -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29389] pe renaming implib breaks bfd/cache.c reopening of closed archives

2022-08-03 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #30 from Luca Bacci --- Thank you very much, Alan and Nick! Is it safe to backport this patch to the 2_39 branch? Let me know, otherwise we can simply add a downstream patch in MSYS2. Cheers, Luca -- You are receiving this

[Bug binutils/29389] pe renaming implib breaks bfd/cache.c reopening of closed archives

2022-08-02 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #22 from Luca Bacci --- Yes, I confirm that it's working now! Luca -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-08-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #17 from Luca Bacci --- Beyond that, would you accept a patch to increase the cache size on Windows? It could help in improving performance -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-08-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #16 from Luca Bacci --- On MSYS2, bfd/cache.c:bfd_cache_max_open() returns 10, while on Linux it returns 128 (because HAVE_GETRLIMIT is defined) If I force the cache size on MSYS2 to a higher value, e.g. 500, then the issue goes

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-08-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #15 from Luca Bacci --- Uh...how strange! One of the very first things that _bfd_coff_link_input_bfd() does is call obj_coff_external_syms() which seeks into the lib file and reads the external symbols table. When

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-08-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #14 from Luca Bacci --- True! I'm going to investigate more... -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-30 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #12 from Luca Bacci --- Clarification: some fields of flaginfo point to invalid memory. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-30 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #11 from Luca Bacci --- Ok, I can now reproduce the issue on Linux 1. Download the binutils-issue.zip archive: https://drive.google.com/file/d/17vAIVbxtBsubC0yjYiZClYejEwDTqJkA/view?usp=sharing 2. Extract the archive 3. Open a

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-30 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #10 from Luca Bacci --- The code that repeatedly calls _bfd_coff_link_input_bfd() is in _bfd_coff_final_link(): https://github.com/bminor/binutils-gdb/blob/binutils-2_38/bfd/cofflink.c#L856 for (o = abfd->sections; o != NULL;

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-30 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #9 from Luca Bacci --- Created attachment 14245 --> https://sourceware.org/bugzilla/attachment.cgi?id=14245=edit Log of all the calls to _bfd_coff_link_input_bfd -- You are receiving this mail because: You are on the CC list

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-30 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #8 from Luca Bacci --- I have now more insights into what's going on... The issue stems from passing repeated import libs to the linker: ld.bfd -o out ... subprojects/glib/gobject/libgobject-2.0.dll.a ...

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-29 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #7 from Luca Bacci --- Thanks, Alan! I'm going to make a bundle containing all the required object files, will attach it very soon. Right now I have just tried debugging this issue in GDB a bit. What I could find is that when

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-22 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #5 from Luca Bacci --- Here's a backtrace when hitting the failed assertion in cofflink.c:2279 (gdb) bt #0 _bfd_coff_link_input_bfd (flaginfo=0xfffb40, input_bfd=0xb3f2710) at ../../binutils-gdb/bfd/cofflink.c:2283 #1

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-22 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #4 from Luca Bacci --- To link the final executable: x86_64-w64-mingw32-cc -o compose-parse.exe compose-parse.c.obj "-Wl,--allow-shlib-undefined" "-Wl,--start-group" "libgtk.a" "libgtk_css.a" "libglib-2.0.dll.a"

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-22 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #3 from Luca Bacci --- Created attachment 14225 --> https://sourceware.org/bugzilla/attachment.cgi?id=14225=edit Bundle with all the object files and static library archives Bundle containing all the needed object files and

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-22 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389 --- Comment #2 from Luca Bacci --- Hello, Alan! I was about to prepare a bundle with all the object files, while a stumbled upon this message: $ cp subprojects/gtk/gtk/compose/compose-parse.exe.p/compose-parse.c.obj

[Bug binutils/29389] New: Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-20 Thread luca.bacci at outlook dot com
Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: luca.bacci at outlook dot com Target Milestone: --- Hi! First of all, thanks for developing such great tools! We've

[Bug binutils/28929] binutils 2.38 ar: issue when updating thin static libraries (malformed archive)

2022-03-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28929 --- Comment #7 from Luca Bacci --- > Fixed, sorry about the breakage No problem at all! :) Thanks for the rapid follow-up! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/28929] binutils 2.38 ar: issue when updating thin static libraries (malformed archive)

2022-03-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28929 --- Comment #2 from Luca Bacci --- Scratch the above comment, as the steps are not useful at all. This can be reproduced on MSYS2 as reported on the GitHub issue. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/28929] binutils 2.38 ar: issue when updating thin static libraries (malformed archive)

2022-03-01 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28929 --- Comment #1 from Luca Bacci --- Steps to reproduce: Have a simple main.c as follows: main.c #include #include int main() { printf ("Hi!\n"); return 0; } Compile and then archive in lib.a

[Bug binutils/28929] New: binutils 2.38 ar: issue when updating thin static libraries (malformed archive)

2022-02-28 Thread luca.bacci at outlook dot com
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: luca.bacci at outlook dot com Target Milestone: --- Hello, We recently found an issue in MSYS2 related to the overwriting (update) of thin static library