[PATCH] ld: Find files relative to the current linker script for INPUT() and GROUP()
Alan Modra
amodra@gmail.com
Mon Apr 20 11:53:15 GMT 2020
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 *.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list