This is the mail archive of the binutils@sourceware.org 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: SEC_NEVER_LOAD cleanup


2010/10/17 Dave Korn <dave.korn.cygwin@gmail.com>:
> On 17/10/2010 11:32, Kai Tietz wrote:
>
>> Well, the CONTENT flag is here of less use. The underlying issue is
>> (at least for pe-coff) that SEC_NEVER_LOAD (which indicates for
>> pe-coff just that this section doesn't have load and allocation flags
>> set and will not loaded into memory - btw different to discard flag,
>> which means that it is initially loaded but then discarded) is treated
>> similar to SEC_EXCLUDE. The SEC_EXCLUDE is in fact the PE-COFF flag
>> IMAGE_SCN_LNK_REMOVE.
>> This looks wrong to me. If you want I can prepare a patch for this.
>
> ?Thanks, that would be very helpful.
>
> ? ?cheers,
> ? ? ?DaveK
>
>

Dave,

could you give the attached patch a whirl? It should solve your issue AFAICS.

Cheers,
Kai


-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: noload.diff
Description: Binary data


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