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: [PATCH] New --pe-dll-characteristcs switch for PE ld.


On Fri, Mar 6, 2009 at 7:48 PM, Dave Korn  wrote:
> Christopher Faylor wrote:
>> On Thu, Mar 05, 2009 at 12:58:39PM +0000, Dave Korn wrote:
>>> The PE header in executables contains a field called
>>> "DllCharacteristics", which contains various flags that inform the OS
>>> dynamic loader about the status of the executable w.r.t. ?runtime
>>> factors such as NX/DEP, ASLR, dynamic rebasing, etc. ?(Despite the
>>> name, it applies to executables of all kinds, not just DLLs, but that's
>>> what MS calls it so that's what I call it).
>>
I agree with Dave on the naming of the options.

The PE Coff spec defines the meaning of these flags in a section called
"DLL Characteristics".
 dumpbin / header foo.exe | grep "DLL characteristics" tells us value
of the field.

It makes perfect sense to me to name the option after the the header
field that it sets.
Danny


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