aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-15 06:01:45 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-15 06:01:45 +0000
commitc96386c4d8bd690856b5742cd783492e8ec9e806 (patch)
treebd37184b62542a4e36b855e676e8d6a9d3f40c3b /ld/lexsup.c
parentd17fc4c99039eaf3ef4cd5955395f78c77eb4737 (diff)
downloadgdb-c96386c4d8bd690856b5742cd783492e8ec9e806.zip
gdb-c96386c4d8bd690856b5742cd783492e8ec9e806.tar.gz
gdb-c96386c4d8bd690856b5742cd783492e8ec9e806.tar.bz2
* ld.h (ld_config_type): Add new field traditional_format.
* lexsup.c (parse_args): Add traditional_format to longopts, and handle it. * ldmain.c (main): Initialize config.traditional_format to false. * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD flags of output_bfd according to config.traditional_format. * ld.texinfo: Document -traditional-format.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 8b1a1cd..7a88a9c 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -99,11 +99,13 @@ parse_args (argc, argv)
{"Tdata", required_argument, NULL, OPTION_TDATA},
#define OPTION_TTEXT 167
{"Ttext", required_argument, NULL, OPTION_TTEXT},
-#define OPTION_UR 168
+#define OPTION_TRADITIONAL_FORMAT 168
+ {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT},
+#define OPTION_UR 169
{"Ur", no_argument, NULL, OPTION_UR},
-#define OPTION_VERSION 169
+#define OPTION_VERSION 170
{"version", no_argument, NULL, OPTION_VERSION},
-#define OPTION_WARN_COMMON 170
+#define OPTION_WARN_COMMON 171
{"warn-common", no_argument, NULL, OPTION_WARN_COMMON},
{NULL, no_argument, NULL, 0}
};
@@ -279,6 +281,9 @@ parse_args (argc, argv)
case OPTION_TTEXT:
set_section_start (".text", optarg);
break;
+ case OPTION_TRADITIONAL_FORMAT:
+ config.traditional_format = true;
+ break;
case OPTION_UR:
link_info.relocateable = true;
config.build_constructors = true;