diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-08-16 15:50:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-08-16 15:50:27 +0000 |
commit | 80fd1f4584013dfa2431a443a93de5afe95668be (patch) | |
tree | 9f54c9a051e773802fc074325a92a230eb76fc59 | |
parent | ce102e96e626d98ff540720807e49abd9bec3d20 (diff) | |
download | gdb-80fd1f4584013dfa2431a443a93de5afe95668be.zip gdb-80fd1f4584013dfa2431a443a93de5afe95668be.tar.gz gdb-80fd1f4584013dfa2431a443a93de5afe95668be.tar.bz2 |
* lexsup.c (parse_args): Accept -h as a synonym for --soname, for
Solaris compatibility.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/lexsup.c | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6f2f009..7404098 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com> + + * lexsup.c (parse_args): Accept -h as a synonym for --soname, for + Solaris compatibility. + Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com> * ldgram.y (YYDEBUG): If not defined, define as 1. diff --git a/ld/lexsup.c b/ld/lexsup.c index dd35a20..1e0889e 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -1,5 +1,5 @@ /* Parse options for the GNU linker. - Copyright (C) 1991, 92, 93, 94 Free Software Foundation, Inc. + Copyright (C) 1991, 92, 93, 94, 1995 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -65,7 +65,7 @@ parse_args (argc, argv) as if it were the argument of an option with character code 1. */ const char *shortopts = - "-a:A:B::b:c:de:F::G:giL:l:Mm:NnO:o:R:rSsT:tu:VvXxY:y:z:()"; + "-a:A:B::b:c:de:F::G:gh:iL:l:Mm:NnO:o:R:rSsT:tu:VvXxY:y:z:()"; /* 150 isn't special; it's just an arbitrary non-ASCII char value. */ @@ -102,7 +102,8 @@ parse_args (argc, argv) #define OPTION_VERBOSE (OPTION_UR + 1) #define OPTION_VERSION (OPTION_VERBOSE + 1) #define OPTION_WARN_COMMON (OPTION_VERSION + 1) -#define OPTION_WARN_ONCE (OPTION_WARN_COMMON + 1) +#define OPTION_WARN_CONSTRUCTORS (OPTION_WARN_COMMON + 1) +#define OPTION_WARN_ONCE (OPTION_WARN_CONSTRUCTORS + 1) #define OPTION_SPLIT_BY_RELOC (OPTION_WARN_ONCE + 1) #define OPTION_SPLIT_BY_FILE (OPTION_SPLIT_BY_RELOC + 1) #define OPTION_WHOLE_ARCHIVE (OPTION_SPLIT_BY_FILE + 1) @@ -155,6 +156,7 @@ parse_args (argc, argv) {"verbose", no_argument, NULL, OPTION_VERBOSE}, {"version", no_argument, NULL, OPTION_VERSION}, {"warn-common", no_argument, NULL, OPTION_WARN_COMMON}, + {"warn-constructors", no_argument, NULL, OPTION_WARN_CONSTRUCTORS}, {"warn-once", no_argument, NULL, OPTION_WARN_ONCE}, {"split-by-reloc", required_argument, NULL, OPTION_SPLIT_BY_RELOC}, {"split-by-file", no_argument, NULL, OPTION_SPLIT_BY_FILE}, @@ -380,6 +382,7 @@ parse_args (argc, argv) case OPTION_SHARED: link_info.shared = true; break; + case 'h': /* Used on Solaris. */ case OPTION_SONAME: command_line.soname = optarg; break; @@ -449,6 +452,9 @@ parse_args (argc, argv) case OPTION_WARN_COMMON: config.warn_common = true; break; + case OPTION_WARN_CONSTRUCTORS: + config.warn_constructors = true; + break; case OPTION_WARN_ONCE: config.warn_once = true; break; |