Date: Sun, 1 Aug 1999 12:17:51 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp-workers AT delorie DOT com Subject: Re: Changes in Binutils 2.9.1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk These are the patches for the ld subdirectory. 1999-07-13 Eli Zaretskii * ldmain.c: Include filenames.h. (set_scripts_dir): Support backslashes in program name. *** ld/ldmain.c1~ Fri May 1 18:48:48 1998 --- ld/ldmain.c Tue Jul 27 19:15:56 1999 *************** Software Foundation, 59 Temple Place - S *** 26,31 **** --- 26,32 ---- #include "libiberty.h" #include "progress.h" #include "bfdlink.h" + #include "filenames.h" #include "ld.h" #include "ldmain.h" *************** set_scripts_dir () *** 538,543 **** --- 539,549 ---- /* Look for "ldscripts" in the dir where our binary is. */ end = strrchr (program_name, '/'); + #ifdef DOSISH_FILENAMES + /* We could have \foo\bar, or /foo\bar. */ + if (end == NULL || strchr (end, '\\')) + end = strrchr (program_name, '\\'); + #endif if (end == NULL) {