This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix PE dll -auto-import breakage from enforcing PE specs forsection flags
- From: Dmitry Semyonov <Dmitry dot Semyonov at oktet dot ru>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: Nick Clifton <nickc at redhat dot com>,binutils <binutils at sources dot redhat dot com>
- Date: Sun, 1 Feb 2004 20:56:26 +0300 (MSK)
- Subject: Re: Fix PE dll -auto-import breakage from enforcing PE specs forsection flags
- References: <20040116213016.46211.qmail@web61002.mail.yahoo.com><Pine.LNX.4.58.0401301531180.21165@mail.oktet.ru>
- Reply-to: Dmitry dot Semyonov at oktet dot ru
On Fri, 30 Jan 2004, Dmitry Semyonov wrote:
> On Sat, 17 Jan 2004, Danny Smith wrote:
>
> > > > What about using WP_TEXT file flag (set by default) as a runtime flag?
> > > > ld --omagic already unsets this flag. Make --enable-auto-import do the
> > > > same when it is actually exercised.
>
> > 2003-01-16 Danny Smith <dannysmith@users.sourceforge.net>
> >
> > * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
> > IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
> > has been unset.
>
> Partial linking (-r) implies --omagic, and therefore also unsets WP_TEXT
> flag. Do you know why it is necessary?
>
> I can use '-r --no-omagic' to force WP_TEXT to be set during partial
> linking. Do you think it is safe?
Moreover, WP_TEXT is not set even during assembling of .s source
into an object file.
...Bye..Dmitry.