[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #17 from cqwrteur --- Created attachment 14898 --> https://sourceware.org/bugzilla/attachment.cgi?id=14898=edit English translation -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #16 from cqwrteur --- Created attachment 14897 --> https://sourceware.org/bugzilla/attachment.cgi?id=14897=edit Someone has found the problem here Someone has found the problem here. std::cout does not bind correctly for ld

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #15 from cqwrteur --- Created attachment 14896 --> https://sourceware.org/bugzilla/attachment.cgi?id=14896=edit He found that ld binds std::cout to the address of std::cout in the dll Why is this .refptr?? It should be just

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #14 from cqwrteur --- Some one tries this program: #include #include #include #include typedef void* (__cdecl* fn_type_t)(void* self, char const* string); int main() { MessageBoxA(nullptr,"pause",nullptr,0);

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #13 from cqwrteur --- .text:000140001588 ; === S U B R O U T I N E === .text:000140001588 .text:000140001588 ;

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #12 from cqwrteur --- Ida pro result for GNU ld. I do not see jmp instruction here. .text:000140001540 ; === S U B R O U T I N E ===

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #11 from cqwrteur --- Here is the disassembly result from IDA pro. .text:000140001540 ; === S U B R O U T I N E === .text:000140001540

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #10 from cqwrteur --- Created attachment 14895 --> https://sourceware.org/bugzilla/attachment.cgi?id=14895=edit ld no link -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #9 from cqwrteur --- Created attachment 14894 --> https://sourceware.org/bugzilla/attachment.cgi?id=14894=edit ld no link ld no link 1 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #8 from cqwrteur --- Created attachment 14893 --> https://sourceware.org/bugzilla/attachment.cgi?id=14893=edit lld has link from text section that jmps here while ld does not lld has link from text section that jmps here while

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added CC||jakub at redhat dot com -- You are

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #7 from cqwrteur --- Created attachment 14892 --> https://sourceware.org/bugzilla/attachment.cgi?id=14892=edit executable -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #6 from cqwrteur --- Created attachment 14891 --> https://sourceware.org/bugzilla/attachment.cgi?id=14891=edit ld missing import of ios_base_library_init I use lld and it imports one more symbol than ld. I guess it is the

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-21 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added CC||amodra at gmail dot com -- You are

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #5 from cqwrteur --- (In reply to Alan Modra from comment #1) > Does this problem still occur after my patch for pr30343? Please fix this asap. I have reported this for half a year and it is still unfixed. This breaks basically

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #3 from cqwrteur --- (In reply to cqwrteur from comment #2) > (In reply to Alan Modra from comment #1) > > Does this problem still occur after my patch for pr30343? > > Yes, it still occurs. Just crashing for hello world. 30375

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #4 from cqwrteur --- https://sourceware.org/bugzilla/show_bug.cgi?id=30375 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 --- Comment #2 from cqwrteur --- (In reply to Alan Modra from comment #1) > Does this problem still occur after my patch for pr30343? Yes, it still occurs. Just crashing for hello world. -- You are receiving this mail because: You are on

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-05-09 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 Alan Modra changed: What|Removed |Added Severity|critical|normal Priority|P1

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-04-01 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added CC||nickc at redhat dot com -- You are

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-03-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added CC||euloanty at live dot com -- You are

[Bug ld/30254] iostream crashes with ld linker for windows targets

2023-03-20 Thread euloanty at live dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30254 cqwrteur changed: What|Removed |Added Priority|P2 |P1 Severity|normal