This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DOS/Windows-related changes in the ld subdirectory


The following changes solve some problems in GNU ld with file-name
handling on DOS/Windows.

1999-07-13  Eli Zaretskii  <eliz@is.elta.co.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)
      {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]