diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-02-28 04:17:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-02-28 04:17:02 +0000 |
commit | 45408cd787dc694972f8206f8464f0398f47263a (patch) | |
tree | 633e1b3309d9ba93d2d088e31487e9811c286b31 /ld | |
parent | e316f51498098c3a236f178d03224b0dafc5ea5e (diff) | |
download | gdb-45408cd787dc694972f8206f8464f0398f47263a.zip gdb-45408cd787dc694972f8206f8464f0398f47263a.tar.gz gdb-45408cd787dc694972f8206f8464f0398f47263a.tar.bz2 |
* ldmain.c (main): Don't initialize link_info.lprefix or
link_info.lprefix_len.
* emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ldmain.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 315ac0c..e8e303e 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -1,5 +1,5 @@ /* Main program of GNU linker. - Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. + Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. Written by Steve Chamberlain steve@cygnus.com This file is part of GLD, the Gnu Linker. @@ -46,6 +46,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include <string.h> +#ifdef HAVE_SBRK +#ifdef NEED_DECLARATION_SBRK +extern PTR sbrk (); +#endif +#endif + static char *get_emulation PARAMS ((int, char **)); static void set_scripts_dir PARAMS ((void)); @@ -183,8 +189,6 @@ main (argc, argv) link_info.traditional_format = false; link_info.strip = strip_none; link_info.discard = discard_none; - link_info.lprefix_len = 1; - link_info.lprefix = "L"; link_info.keep_memory = true; link_info.input_bfds = NULL; link_info.create_object_symbols_section = NULL; @@ -427,7 +431,7 @@ get_emulation (argc, argv) char *emulation; int i; - emulation = (char *) getenv (EMULATION_ENVIRON); + emulation = getenv (EMULATION_ENVIRON); if (emulation == NULL) emulation = DEFAULT_EMULATION; @@ -450,7 +454,8 @@ get_emulation (argc, argv) } else if (strcmp (argv[i], "-mips1") == 0 || strcmp (argv[i], "-mips2") == 0 - || strcmp (argv[i], "-mips3") == 0) + || strcmp (argv[i], "-mips3") == 0 + || strcmp (argv[i], "-mips4") == 0) { /* FIXME: The arguments -mips1, -mips2 and -mips3 are passed to the linker by some MIPS compilers. They |