bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/30561] conversion from binary to PE broken


From: nickc at redhat dot com
Subject: [Bug binutils/30561] conversion from binary to PE broken
Date: Wed, 21 Jun 2023 13:13:05 +0000

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

--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Stas Sergeev from comment #2)

> Still would you mind clarifying why
> "There is just not enough information in the input format to enable a
>  proper conversion"?

Well for example, objcopy has no way of determining whether the input binary
contains code, data, or something else.  So it is not at all obvious which
section(s) should be used to contain the input.  Plus there is nothing to
indicate if there are any alignment requirements for the input, or symbols that
should reference it, or relocations that are needed to update it and so on.

> If this is true, then I'll just write
> the script. If not true - I would expect
> the bugfix is needed. :)
> Please note that converting the same
> to ELF works well. In this particular
> case it seems likely the PE header got
> messed up.

OK, so yes, there probably is a bug, or at least an invalid assumption, in the
code that generates the PE header.  But my feeling is that fixing it is a very
low priority, at least at the moment.

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]