bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: address@hidden
Subject: [Bug ld/25029] Invalid PE file caused by discarded .rdata section
Date: Sat, 12 Oct 2019 23:44:08 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25029

--- Comment #7 from Florin Saftoiu <address@hidden> ---
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             00003000
SizeOfHeaders           00000400
...

test_64_data.exe does NOT work.

Here's the output from objdump.exe -p test_64_rdata.exe :
...
SizeOfImage             00004000
SizeOfHeaders           00000200
...

test_64_rdata.exe does work.

I've manually edited test_64_data.exe and got the following results :
- SizeOfImage 0x3000, SizeOfHeaders 0x200 => does NOT work
- SizeOfImage 0x4000, SizeOfHeaders 0x400 => works
- SizeOfImage 0x4000, SizeOfHeaders 0x200 => works

So it seems that the bigger problem is the SizeOfImage and not the
SizeOfHeaders.

Best regards,
Florin

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]