From: Eli Zaretskii <eliz@gnu.org>
To: binutils@sourceware.cygnus.com
Subject: DOS/Windows-related changes in the ld subdirectory
Date: Mon, 06 Sep 1999 01:19:00 -0000 [thread overview]
Message-ID: <199909060819.EAA23385@mescaline.gnu.org> (raw)
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)
{
reply other threads:[~1999-09-06 1:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199909060819.EAA23385@mescaline.gnu.org \
--to=eliz@gnu.org \
--cc=binutils@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).