diff options
author | Paul Brook <paul@codesourcery.com> | 2004-11-15 23:21:27 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2004-11-15 23:21:27 +0000 |
commit | fc0e6df64dd2d64f16469008668ccea697291758 (patch) | |
tree | 49da66fa6655847c298d71374872aaa31a969aa3 /ld/lexsup.c | |
parent | 2e8d14f48283a91dd8874ecaea037e904c047998 (diff) | |
download | gdb-fc0e6df64dd2d64f16469008668ccea697291758.zip gdb-fc0e6df64dd2d64f16469008668ccea697291758.tar.gz gdb-fc0e6df64dd2d64f16469008668ccea697291758.tar.bz2 |
bfd/
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
* elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
(_bfd_elf_slurp_version_tables): Add extra argument. Create extra
default version definition for unversioned symbols.
* elfcode.h (elf_slurp_symbol_table): Pass extra argument.
* elflink.c (elf_link_add_object_symbols): Pass extra argument to
_bfd_elf_slurp_version_tables. Set default version for unversioned
imported symbols.
include/
* bfdlink.h (bfd_link_info): Add default_imported_symver.
ld/
* 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.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |