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'
- To: obrien at FreeBSD dot org
- Subject: Re: [PATCH] basename buffer gets spammed in `ld'
- From: DJ Delorie <dj at delorie dot com>
- Date: Mon, 9 Jul 2001 19:48:03 -0400
- CC: binutils at sourceware dot cygnus dot com
- References: <20010709163642.A41697@dragon.nuxi.com>
Have you tried replacing basename() with libiberty's new lbasename()?
lbasename() always returns a pointer to the string you give it, which
shouldn't be clobbered unless someone renames a bfd.
If that works, it would be a preferrable solution.