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: stsp at users dot sourceforge.net
Subject: [Bug binutils/30561] conversion from binary to PE broken
Date: Wed, 21 Jun 2023 16:38:21 +0000

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

--- Comment #4 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to Nick Clifton from comment #3)
> 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.

AFAIK you can use --rename-section if
you don't want to have the default .data.
man page even has an example of how to
do this.

> Plus there is nothing to
> indicate if there are any alignment requirements for the input,

I think --set-section-alignment can be
used to set an alignment of a desired
section.

Sure thing with incbin you can do lots of
fancy tricks, define more symbols than
objcopy would, and so on. But objcopy seems
to cover most of the basic needs.

> But my feeling is that fixing it is a very low priority, at least at the 
> moment.

It breaks under cygwin (not only under cygwin),
where PE is a default. So while a very minor
problem under linux, its quite a problem under
windows.

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