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: nickc at redhat dot com
Subject: [Bug ld/25029] Invalid PE file caused by discarded .rdata section
Date: Thu, 10 Oct 2019 14:45:37 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-10-10
                 CC|                            |nickc at redhat dot com
     Ever confirmed|0                           |1

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Florin Saftoiu from comment #0)
Hi Florin,

> This used to work like a charm with ld 2.30, but produces an invalid file
> with ld 2.32. Specifically, the entry point address seems wrong.

What seems to be wrong with the entry point ?

I tried to reproduce the problem locally, but to me the entry point looks
correct:

  % objdump -f test_64.exe
  [...]
  start address 0x0000000100401000

  % objdump -d test_64.exe
  [...]
  Disassembly of section .text:

  0000000100401000 <__rt_psrelocs_end>:
     100401000: 48 83 ec 08             sub    $0x8,%rsp
     100401004: 48 83 ec 20             sub    $0x20,%rsp

  0000000100401008 <_main.DisplayMessageBox>:
     100401008: b9 00 00 00 00          mov    $0x0,%ecx
  [...]

Please note, I am not a PE format expert, so there could well be something
simple that is wrong and I am just not seeing it.

Cheers
  Nick

-- 
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]