Mail Archives: djgpp-workers/1999/08/01/09:51:38
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 -