[PATCH] basename buffer gets spammed in `ld'
H . J . Lu
hjl@lucon.org
Thu Jul 12 11:49:00 GMT 2001
On Thu, Jul 12, 2001 at 11:43:19AM -0700, David O'Brien wrote:
> @@ -967,7 +964,7 @@
> /* Rather than duplicating the logic above. Just use the
> filename we recorded earlier. */
>
> - filename = xstrdup (basename (entry->filename));
> + filename = lbasename (entry->filename);
> bfd_elf_set_dt_needed_name (entry->the_bfd, filename);
> }
>
Are you sure it is 100% safe to remove xstrdup?
H.J.
More information about the Binutils
mailing list