ldmain.c (60484) | ldmain.c (61843) |
---|---|
1/* Main program of GNU linker. | 1/* Main program of GNU linker. |
2 Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 1999 | 2 Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000 |
3 Free Software Foundation, Inc. 4 Written by Steve Chamberlain steve@cygnus.com 5 6This file is part of GLD, the Gnu Linker. 7 8GLD is free software; you can redistribute it and/or modify 9it under the terms of the GNU General Public License as published by 10the Free Software Foundation; either version 2, or (at your option) --- 11 unchanged lines hidden (view full) --- 22 23#include "bfd.h" 24#include "sysdep.h" 25#include <stdio.h> 26#include <ctype.h> 27#include "libiberty.h" 28#include "progress.h" 29#include "bfdlink.h" | 3 Free Software Foundation, Inc. 4 Written by Steve Chamberlain steve@cygnus.com 5 6This file is part of GLD, the Gnu Linker. 7 8GLD is free software; you can redistribute it and/or modify 9it under the terms of the GNU General Public License as published by 10the Free Software Foundation; either version 2, or (at your option) --- 11 unchanged lines hidden (view full) --- 22 23#include "bfd.h" 24#include "sysdep.h" 25#include <stdio.h> 26#include <ctype.h> 27#include "libiberty.h" 28#include "progress.h" 29#include "bfdlink.h" |
30#include "filenames.h" |
|
30 31#include "ld.h" 32#include "ldmain.h" 33#include "ldmisc.h" 34#include "ldwrite.h" 35#include "ldgram.h" 36#include "ldexp.h" 37#include "ldlang.h" --- 524 unchanged lines hidden (view full) --- 562 char *end, *dir; 563 size_t dirlen; 564 565 if (check_for_scripts_dir (SCRIPTDIR)) 566 return; /* We've been installed normally. */ 567 568 /* Look for "ldscripts" in the dir where our binary is. */ 569 end = strrchr (program_name, '/'); | 31 32#include "ld.h" 33#include "ldmain.h" 34#include "ldmisc.h" 35#include "ldwrite.h" 36#include "ldgram.h" 37#include "ldexp.h" 38#include "ldlang.h" --- 524 unchanged lines hidden (view full) --- 563 char *end, *dir; 564 size_t dirlen; 565 566 if (check_for_scripts_dir (SCRIPTDIR)) 567 return; /* We've been installed normally. */ 568 569 /* Look for "ldscripts" in the dir where our binary is. */ 570 end = strrchr (program_name, '/'); |
571#ifdef HAVE_DOS_BASED_FILE_SYSTEM 572 { 573 /* We could have \foo\bar, or /foo\bar. */ 574 char *bslash = strrchr (program_name, '\\'); 575 if (bslash > end) 576 end = bslash; 577 } 578#endif |
|
570 571 if (end == NULL) 572 { 573 /* Don't look for ldscripts in the current directory. There is 574 too much potential for confusion. */ 575 return; 576 } 577 --- 736 unchanged lines hidden --- | 579 580 if (end == NULL) 581 { 582 /* Don't look for ldscripts in the current directory. There is 583 too much potential for confusion. */ 584 return; 585 } 586 --- 736 unchanged lines hidden --- |