[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-12-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #14 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a23e9ba17f6ab8bef1f2cc02686e8567bdc728ca commit

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-12-05 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 Nick Clifton changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-11-14 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #13 from Florin Saftoiu --- Hi Nick, I've tested with both patches applied and the executable is valid and works as expected. SizeOfHeaders is 0x200 and SizeOfImage is 0x4000 as expected. So I guess the patches are OK. Weird

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-11-14 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #12 from Nick Clifton --- Created attachment 12073 --> https://sourceware.org/bugzilla/attachment.cgi?id=12073=edit Proposed patch Hi Florian, You are right - the sections are in a different order for me (.text, .data.

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-11-13 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #11 from Florin Saftoiu --- Hi Nick, Sorry it took so long, I finally got some time, so I compiled the msys2 binutils-2.32 package from source and ran it in GDB. Here's my GDB session : $ gdb --args

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-21 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #10 from Nick Clifton --- Hi Florin, > The target seems to be x86_64-w64-mingw32 Darn - I get the same results (ie SizeOfImage == 0x4000 always) with this configuration too. > Are your results before or after applying your

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-14 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #9 from Florin Saftoiu --- Hello, I'm using GCC 9.2.0 and Binutils 2.32 from MSYS2. No Cygwin installed. The target seems to be x86_64-w64-mingw32 PS ...>gcc -dumpmachine x86_64-w64-mingw32 Are your results before or after

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-14 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #8 from Nick Clifton --- Hi Florin, (In reply to Florin Saftoiu from comment #7) > SizeOfImage is actually 0x3000 with the section called .data and 0x4000 with > the section called .rdata. > So it seems that the bigger problem

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-12 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #7 from Florin Saftoiu --- Hi Nick, SizeOfImage is actually 0x3000 with the section called .data and 0x4000 with the section called .rdata. Here's the output from objdump.exe -p test_64_data.exe : ... SizeOfImage

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-11 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #6 from Nick Clifton --- Created attachment 12038 --> https://sourceware.org/bugzilla/attachment.cgi?id=12038=edit Proposed patch -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-11 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #5 from Nick Clifton --- Hi Florin, Just checking... > The problem is in fact with the SizeOfImage and SizeOfHeaders fields. > If I call the data section .rdata, then I get a SizeOfImage of 0x4000 and a > SizeOfHeaders of 0x200

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-11 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #4 from Florin Saftoiu --- PS: I actually modified the .exe file to change SizeOfImage to 0x4000 and SizeOfHeaders to 0x200 and I can now execute it in Windows. -- You are receiving this mail because: You are on the CC list for

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-11 Thread florin.saft...@soft-to-you.com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 --- Comment #3 from Florin Saftoiu --- Hi Nick, Thanks for your reply. You're right about the entry point, it is correct. But Windows still wouldn't run my program so I took another look at the file. The problem is in fact with the

[Bug ld/25029] Invalid PE file caused by discarded .rdata section

2019-10-10 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25029 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|