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: [PATCH] allow easier overriding of ELF_DYNAMIC_INTERPRETER


On Wed, Feb 13, 2002 at 11:20:58AM +0000, Nick Clifton wrote:
> > * elf32-arm.h (ELF_DYNAMIC_INTERPRETER): Only define if not already
> > 	defined.
> 
> I Think that Thiemo is right - it would be better to #undef any prior
> definitions of ELF_DYNAMIC_INTERPRETER rather than providing a
> definition in case there is no default.  Please could you change your
> patch to do this instead ?


I am not sure what you are suggesting.
You are suggesting that rather than:

    #ifndef ELF_DYNAMIC_INTERPRETER
    #define ELF_DYNAMIC_INTERPRETER  foo
    #endif

the patch become:

    #undef ELF_DYNAMIC_INTERPRETER
    #define ELF_DYNAMIC_INTERPRETER  foo

Correct?  If so that still will not allow easy overriding of
ELF_DYNAMIC_INTERPRETER.  How about we just move that macro into its own
header?  It would be very easy to provide an alternate header via
``configure''.


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