This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] basename buffer gets spammed in `ld'
> 2001-07-11 David O'Brien <obrien@FreeBSD.org>
>
> * emultempl/elf32.em: Make all basename calls safe by using
> lbasename() with non-changing buffers.
Make sure the branch has lbasename in libiberty, else OK (unless Phil
B disagrees, of course ;).
> - filename = xstrdup (basename (entry->filename));
> + filename = lbasename (entry->filename);
Are you sure the xstrdup is no longer needed with lbasename?