This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PE dll -auto-import breakage from enforcing PE specs forsection flags


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]