diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-15 06:01:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-15 06:01:45 +0000 |
commit | c96386c4d8bd690856b5742cd783492e8ec9e806 (patch) | |
tree | bd37184b62542a4e36b855e676e8d6a9d3f40c3b /ld/ldlang.c | |
parent | d17fc4c99039eaf3ef4cd5955395f78c77eb4737 (diff) | |
download | gdb-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/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 93a7d673..36a8553 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -889,6 +889,10 @@ ldlang_open_output (statement) output_bfd->flags |= WP_TEXT; else output_bfd->flags &= ~WP_TEXT; + if (config.traditional_format) + output_bfd->flags |= BFD_TRADITIONAL_FORMAT; + else + output_bfd->flags &= ~BFD_TRADITIONAL_FORMAT; break; case lang_target_statement_enum: |