diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-28 00:18:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-28 00:18:24 +0000 |
commit | 8851eccaec28f25f56fab5ba5d8ae44f71729975 (patch) | |
tree | 8580999a45a15a7e86dbabb0675a05f647aedd1a /gold/dynobj.cc | |
parent | f960754aeea602f787d1828efb0f9a8baeca646e (diff) | |
download | fsf-binutils-gdb-8851eccaec28f25f56fab5ba5d8ae44f71729975.zip fsf-binutils-gdb-8851eccaec28f25f56fab5ba5d8ae44f71729975.tar.gz fsf-binutils-gdb-8851eccaec28f25f56fab5ba5d8ae44f71729975.tar.bz2 |
From Craig Silverstein: Have Parameters point to General_options.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r-- | gold/dynobj.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc index a33707b..bfcc78a 100644 --- a/gold/dynobj.cc +++ b/gold/dynobj.cc @@ -775,7 +775,7 @@ Dynobj::create_elf_hash_table(const std::vector<Symbol*>& dynsyms, * 4); unsigned char* phash = new unsigned char[hashlen]; - if (parameters->is_big_endian()) + if (parameters->target().is_big_endian()) { #if defined(HAVE_TARGET_32_BIG) || defined(HAVE_TARGET_64_BIG) Dynobj::sized_create_elf_hash_table<true>(bucket, chain, phash, @@ -904,8 +904,8 @@ Dynobj::create_gnu_hash_table(const std::vector<Symbol*>& dynsyms, // For the actual data generation we call out to a templatized // function. - int size = parameters->get_size(); - bool big_endian = parameters->is_big_endian(); + int size = parameters->target().get_size(); + bool big_endian = parameters->target().is_big_endian(); if (size == 32) { if (big_endian) @@ -1235,13 +1235,13 @@ Versions::Versions(const Version_script_info& version_script, { // We always need a base version, so define that first. Nothing // explicitly declares itself as part of base, so it doesn't need to - // be in version_table_. + // be in version_table_. // FIXME: Should use soname here when creating a shared object. Is // this fixme still valid? It looks like it's doing the right thing // to me. - if (parameters->output_is_shared()) + if (parameters->options().shared()) { - const char* name = dynpool->add(parameters->output_file_name(), + const char* name = dynpool->add(parameters->options().output_file_name(), false, NULL); Verdef* vdbase = new Verdef(name, std::vector<std::string>(), true, false, true); @@ -1307,13 +1307,13 @@ Versions::record_version(const Symbol_table* symtab, { gold_assert(!this->is_finalized_); gold_assert(sym->version() != NULL); - + Stringpool::Key version_key; const char* version = dynpool->add(sym->version(), false, &version_key); if (!sym->is_from_dynobj() && !sym->is_copied_from_dynobj()) { - if (parameters->output_is_shared()) + if (parameters->options().shared()) this->add_def(sym, version, version_key); } else @@ -1350,7 +1350,7 @@ Versions::add_def(const Symbol* sym, const char* version, // If we are creating a shared object, it is an error to // find a definition of a symbol with a version which is not // in the version script. - if (parameters->output_is_shared()) + if (parameters->options().shared()) { gold_error(_("symbol %s has undefined version %s"), sym->demangled_name().c_str(), version); @@ -1481,7 +1481,7 @@ Versions::version_index(const Symbol_table* symtab, const Stringpool* dynpool, Key k; if (!sym->is_from_dynobj() && !sym->is_copied_from_dynobj()) { - if (!parameters->output_is_shared()) + if (!parameters->options().shared()) return elfcpp::VER_NDX_GLOBAL; k = Key(version_key, 0); } |