https://sourceware.org/bugzilla/show_bug.cgi?id=29389
Alan Modra changed:
What|Removed |Added
Last reconfirmed||2022-08-02
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.
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
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
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.
https://sourceware.org/bugzilla/show_bug.cgi?id=29389
--- Comment #13 from Alan Modra ---
I don't see anything unusual when I link comment #11 objects. Sure, the same
file name is linked twice, but one is from
subprojects/glib/gobject/libgobject-2.0.dll.a (defining
g_value_init_from_instance)
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.
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
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;
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
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 ...
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
https://sourceware.org/bugzilla/show_bug.cgi?id=29389
Peter Bergner changed:
What|Removed |Added
CC||bergner at linux dot ibm.com
--
You
https://sourceware.org/bugzilla/show_bug.cgi?id=29389
--- Comment #6 from Alan Modra ---
You are missing rather a lot of object files and libraries in that zip.
Besides the libraries you specify with -l, there are also some objects and
libraries that your cc adds. You can see those by adding
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
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"
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
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
https://sourceware.org/bugzilla/show_bug.cgi?id=29389
--- Comment #1 from Alan Modra ---
See my comment https://sourceware.org/pipermail/binutils/2022-July/121966.html
--
You are receiving this mail because:
You are on the CC list for the bug.
19 matches
Mail list logo