From: "Tim Van Holder" To: Subject: RE: Where does gcc -o foo make foo.exe Date: Sun, 14 Jan 2001 10:34:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA05833 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Yes (I assume you meant /dev/env/DJDIR/bin/stubify.exe). But I wonder > whether we should add to this list SELFDIR/stubify.exe, where SELFDIR is > the directory part of ld.exe's argv[0]? That would allow ld.exe to DTRT > even if DJGPP.ENV is not there (since DJDIR is computed by the code which > reads DJGPP.ENV). I believe the stub loading is done by BFD, not ld; so getting (portably) at the path to the current executable may not be obvious.