public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Vladimir Simonov <sv@sw.ru>
To: binutils@sourceware.org
Cc: Alan Modra <amodra@gmail.com>
Subject: Re: Does objcopy --add-section .rsrc work for pei-i386?
Date: Sat, 04 Feb 2012 15:18:00 -0000	[thread overview]
Message-ID: <4F2D596C.9010409@sw.ru> (raw)
In-Reply-To: <20120204053144.GA4832@bubble.grove.modra.org>

On 02/04/2012 08:31 AM, Alan Modra wrote:
> On Fri, Feb 03, 2012 at 05:18:03PM +0300, Vladimir Simonov wrote:
>> Should objcopy work in such mode?
>
> No.  Resizing executables or shared libraries difficult.
>
Alan, thank you for replay.

Can somebody understanding PE format and its status(state, goals) in
binutils better than Alan and me answer the following questions?

May it be that replace .rsrc section will be easier then its addition?
I mean the case when I create a.dll with English resources and will
replace them with other language resources if necessary.
Probably it is better to implement it in windres, not in objcopy.

 From the first glance on PE dumps it looks not too difficult.
We need just replace one .rsrc section with another one,
shift .reloc section appropriately(change VirtAddr),
recalculate file checksum(if necessary).

Am I missing something which is difficult?

Sorry in advance if my questions are stupid - I'm not PE format guru:)

Regards
Vladimir Simonov

      reply	other threads:[~2012-02-04 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 13:21 Vladimir Simonov
2012-02-04  5:32 ` Alan Modra
2012-02-04 15:18   ` Vladimir Simonov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2D596C.9010409@sw.ru \
    --to=sv@sw.ru \
    --cc=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).