aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-22 21:32:58 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-22 21:32:58 +0000
commit6799c638e59e6861940dd4eec6c59f6466db1f69 (patch)
tree50617a4074558f081e996288cace442e9b30276d /ld/lexsup.c
parentaf50cd91709c17eea54401ee327ee421b8a8b985 (diff)
downloadgdb-6799c638e59e6861940dd4eec6c59f6466db1f69.zip
gdb-6799c638e59e6861940dd4eec6c59f6466db1f69.tar.gz
gdb-6799c638e59e6861940dd4eec6c59f6466db1f69.tar.bz2
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
don't clobber it when not relaxing. * ld.h (ld_config_type): Remove traditional_format field. * ldmain.c (main): Use link_info.traditional_format rather than config.traditional_format. * ldlang.c (ldlang_open_output): Likewise. * lexsup.c (parse_args): Likewise. * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise. * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 85dc568..0459dc6 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -141,11 +141,11 @@ static const struct ld_option ld_options[] =
'E', NULL, "Export all dynamic symbols", TWO_DASHES },
{ {NULL, optional_argument, NULL, '\0'},
'F', "[FORMAT]", "Ignored", ONE_DASH },
+ { {NULL, no_argument, NULL, '\0'},
+ 'g', NULL, "Ignored", ONE_DASH },
{ {"gpsize", required_argument, NULL, 'G'},
'G', "SIZE", "Small data size (if no size, same as --shared)",
TWO_DASHES },
- { {NULL, no_argument, NULL, '\0'},
- 'g', NULL, "Ignored", ONE_DASH },
{ {"soname", required_argument, NULL, OPTION_SONAME},
'h', "FILENAME", "Set internal name of shared library", ONE_DASH },
{ {"library", required_argument, NULL, 'l'},
@@ -204,10 +204,10 @@ static const struct ld_option ld_options[] =
'\0', "KEYWORD", "Ignored for SunOS compatibility", ONE_DASH },
{ {"Bdynamic", no_argument, NULL, OPTION_CALL_SHARED},
'\0', NULL, "Link against shared libraries", ONE_DASH },
- { {"call_shared", no_argument, NULL, OPTION_CALL_SHARED},
- '\0', NULL, NULL, ONE_DASH },
{ {"dy", no_argument, NULL, OPTION_CALL_SHARED},
'\0', NULL, NULL, ONE_DASH },
+ { {"call_shared", no_argument, NULL, OPTION_CALL_SHARED},
+ '\0', NULL, NULL, ONE_DASH },
{ {"Bstatic", no_argument, NULL, OPTION_NON_SHARED},
'\0', NULL, "Do not link against shared libraries", ONE_DASH },
{ {"dn", no_argument, NULL, OPTION_NON_SHARED},
@@ -630,7 +630,7 @@ parse_args (argc, argv)
set_section_start (".text", optarg);
break;
case OPTION_TRADITIONAL_FORMAT:
- config.traditional_format = true;
+ link_info.traditional_format = true;
break;
case OPTION_UR:
link_info.relocateable = true;