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 abou
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
/c/work/projects/soft-to-you/o
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 appl
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
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 t
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 SizeOfIm
https://sourceware.org/bugzilla/show_bug.cgi?id=25029
--- Comment #1 from Florin Saftoiu ---
Also, if I rename the .data section to .rdata it all works out fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binut
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: florin.saft...@soft-to-you.com
Target Milestone: ---
Created attachment 12000
--> https://sourceware.org/bugzilla/attachment.cgi?id=12000&action=edit
code to reproduce bug
Hello,
I have attached