delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/01/09:51:38

Date: Sun, 1 Aug 1999 12:17:51 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: Changes in Binutils 2.9.1
In-Reply-To: <Pine.SUN.3.91.990801121450.20304f-100000@is>
Message-ID: <Pine.SUN.3.91.990801121741.20304k-100000@is>
MIME-Version: 1.0
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

These are the patches for the ld subdirectory.

1999-07-13  Eli Zaretskii  <eliz AT is DOT elta DOT co DOT il>

	* 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)
      {

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019