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: Fri, 30 Jan 2004 15:40:02 +0300 (MSK)
- Subject: Re: Fix PE dll -auto-import breakage from enforcing PE specs forsection flags
- References: <20040116213016.46211.qmail@web61002.mail.yahoo.com>
- Reply-to: Dmitry dot Semyonov at oktet dot ru
Hello Danny, Nick, et al.
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?
...Bye..Dmitry.