diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/ld.texinfo | 7 | ||||
-rw-r--r-- | ld/ldmain.c | 1 | ||||
-rw-r--r-- | ld/lexsup.c | 8 |
4 files changed, 23 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b667596..7318455 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2004-11-04 Paul Brook <paul@codesourcery.com> + + * ld.texinfo: Document --default-imported-symver. + * ldmain.c (main): Set link_info.default_imported_symver. + * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER. + (ld_options): Add --default-imported-symver. + (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER. + 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com> Vineet Sharma <vineets@noida.hcltech.com> diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 597c705..e2a971b 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1237,7 +1237,12 @@ will be issued instead. @kindex --default-symver @item --default-symver Create and use a default symbol version (the soname) for unversioned -symbols. +exported symbols. + +@kindex --default-imported-symver +@item --default-imported-symver +Create and use a default symbol version (the soname) for unversioned +imported symbols. @kindex --no-warn-mismatch @item --no-warn-mismatch diff --git a/ld/ldmain.c b/ld/ldmain.c index 6eb3774..04672f3 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -307,6 +307,7 @@ main (int argc, char **argv) link_info.allow_multiple_definition = FALSE; link_info.allow_undefined_version = TRUE; link_info.create_default_symver = FALSE; + link_info.default_imported_symver = FALSE; link_info.keep_memory = TRUE; link_info.notice_all = FALSE; link_info.nocopyreloc = FALSE; diff --git a/ld/lexsup.c b/ld/lexsup.c index 28f28ff..d85d912 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -136,6 +136,7 @@ enum option_values OPTION_ALLOW_MULTIPLE_DEFINITION, OPTION_NO_UNDEFINED_VERSION, OPTION_DEFAULT_SYMVER, + OPTION_DEFAULT_IMPORTED_SYMVER, OPTION_DISCARD_NONE, OPTION_SPARE_DYNAMIC_TAGS, OPTION_NO_DEFINE_COMMON, @@ -397,6 +398,10 @@ static const struct ld_option ld_options[] = '\0', NULL, N_("Disallow undefined version"), TWO_DASHES }, { {"default-symver", no_argument, NULL, OPTION_DEFAULT_SYMVER}, '\0', NULL, N_("Create default symbol version"), TWO_DASHES }, + { {"default-imported-symver", no_argument, NULL, + OPTION_DEFAULT_IMPORTED_SYMVER}, + '\0', NULL, N_("Create default symbol version for imported symbols"), + TWO_DASHES }, { {"no-warn-mismatch", no_argument, NULL, OPTION_NO_WARN_MISMATCH}, '\0', NULL, N_("Don't warn about mismatched input files"), TWO_DASHES}, { {"no-whole-archive", no_argument, NULL, OPTION_NO_WHOLE_ARCHIVE}, @@ -909,6 +914,9 @@ parse_args (unsigned argc, char **argv) case OPTION_DEFAULT_SYMVER: link_info.create_default_symver = TRUE; break; + case OPTION_DEFAULT_IMPORTED_SYMVER: + link_info.default_imported_symver = TRUE; + break; case OPTION_NO_WARN_MISMATCH: command_line.warn_mismatch = FALSE; break; |