[PATCH] ld: Find files relative to the current linker script for INPUT() and GROUP()

Nick Clifton nickc@redhat.com
Mon Apr 20 11:54:46 GMT 2020


Hi Alan,

> On Mon, Apr 20, 2020 at 11:45:49AM +0100, Nick Clifton via Binutils wrote:
>>> +          char *path = concat (entry->extra_search_path, slash, entry->filename,
>>> +                               (const char *)0);
>>
>> I prefer NULL to (const char *)0 myself.
> 
> Bad idea in this particular case (an ellipsis arg).  The C89 standard
> allows NULL to be defined as 0.  See 6.4.2.3 point 3.  An int might
> not be the same size as a const char *.

Did not know that.  Thanks for the heads-up. :-)

Cheers
  Nick



More information about the Binutils mailing list