aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-10 17:41:13 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-10 17:41:13 +0000
commit4551e108a0aa3a3959ca027cbe16aec756769c0c (patch)
tree2dc522db45f91393d5c088396486c05df6d018e0 /ld/lexsup.c
parent951fe66d6208b801aaeedda3bf4b380a89b1feac (diff)
downloadgdb-4551e108a0aa3a3959ca027cbe16aec756769c0c.zip
gdb-4551e108a0aa3a3959ca027cbe16aec756769c0c.tar.gz
gdb-4551e108a0aa3a3959ca027cbe16aec756769c0c.tar.bz2
* ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
-shared. Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com> * ldmain.c (main): Set link_info.symbolic to false. * lexsup.c (parse_args): Handle -Bsymbolic.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 6557f05..dd35a20 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -93,7 +93,8 @@ parse_args (argc, argv)
#define OPTION_STACK (OPTION_SORT_COMMON + 1) /*WINDOWS_NT*/
#define OPTION_STATS (OPTION_STACK + 1)
#define OPTION_SUBSYSTEM (OPTION_STATS + 1) /* WINDOWS_NT */
-#define OPTION_TBSS (OPTION_SUBSYSTEM + 1)
+#define OPTION_SYMBOLIC (OPTION_SUBSYSTEM + 1)
+#define OPTION_TBSS (OPTION_SYMBOLIC + 1)
#define OPTION_TDATA (OPTION_TBSS + 1)
#define OPTION_TTEXT (OPTION_TDATA + 1)
#define OPTION_TRADITIONAL_FORMAT (OPTION_TTEXT + 1)
@@ -109,6 +110,7 @@ parse_args (argc, argv)
static struct option longopts[] = {
{"Bdynamic", no_argument, NULL, OPTION_CALL_SHARED},
{"Bstatic", no_argument, NULL, OPTION_NON_SHARED},
+ {"Bsymbolic", no_argument, NULL, OPTION_SYMBOLIC},
{"call_shared", no_argument, NULL, OPTION_CALL_SHARED},
{"dc", no_argument, NULL, 'd'},
{"defsym", required_argument, NULL, OPTION_DEFSYM},
@@ -394,6 +396,9 @@ parse_args (argc, argv)
case OPTION_SUBSYSTEM: /* WINDOWS_NT */
set_subsystem (optarg);
break;
+ case OPTION_SYMBOLIC:
+ link_info.symbolic = true;
+ break;
case 't':
trace_files = true;
break;