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]

Re: Possible Bug with "n" Flag of .section Directive


Hi Nick,

> I theory this translation should occur in sec_to_styp_flags() in
> coffcode.h.  (I have not tested any of this), and indeed when I look
> in that file I see a comment that says:
> 
>   /* skip LOAD */
> 
> Maybe this is the bug.  Maybe this ought to be changed to:
> 
>   if ((sec_flags & SEC_LOAD) == 0)
>     styp_flags |= STYP_NOLOAD;

I think you right idea, but I think you're looking at the COFF_WITH_PE 
version. The non-COFF_WITH_PE version is right above it.

Mark


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