View | Details | Raw Unified | Return to bug 13597 | Differences between
and this patch

Collapse All | Expand All

(-)gold/layout.cc (-25 / +17 lines)
Line 3835 Link Here
3835
  if (strcmp(parameters->options().hash_style(), "sysv") == 0
3835
  if (strcmp(parameters->options().hash_style(), "gnu") == 0
3836
--
Line 3840 Link Here
3840
      Dynobj::create_elf_hash_table(*pdynamic_symbols, local_symcount,
3840
      Dynobj::create_gnu_hash_table(*pdynamic_symbols, local_symcount,
3841
--
Line 3844 Link Here
3844
      this->choose_output_section(NULL, ".hash", elfcpp::SHT_HASH,
3844
      this->choose_output_section(NULL, ".gnu.hash", elfcpp::SHT_GNU_HASH,
3845
--
Lines 3859-3860 Link Here
3859
        hashsec->set_entsize(4);
3860
      }
Lines 3862-3863 Link Here
3862
      if (odyn != NULL)
3860
        // For a 64-bit target, the entries in .gnu.hash do not have
3863
      odyn->add_section_address(elfcpp::DT_HASH, hashsec);
3861
        // a uniform size, so we only set the entry size for a
3864
--
3862
        // 32-bit target.
3863
        if (parameters->target().get_size() == 32)
3864
          hashsec->set_entsize(4);
3865
        if (odyn != NULL)
3866
          odyn->add_section_address(elfcpp::DT_GNU_HASH, hashsec);
3867
      }
Line 3866 Link Here
3866
  if (strcmp(parameters->options().hash_style(), "gnu") == 0
3871
  if (strcmp(parameters->options().hash_style(), "sysv") == 0
3867
--
Line 3871 Link Here
3871
      Dynobj::create_gnu_hash_table(*pdynamic_symbols, local_symcount,
3876
      Dynobj::create_elf_hash_table(*pdynamic_symbols, local_symcount,
3872
--
Line 3875 Link Here
3875
      this->choose_output_section(NULL, ".gnu.hash", elfcpp::SHT_GNU_HASH,
3880
      this->choose_output_section(NULL, ".hash", elfcpp::SHT_HASH,
3876
--
Lines 3890-3898 Link Here
3890
        // For a 64-bit target, the entries in .gnu.hash do not have
3895
        hashsec->set_entsize(4);
3891
        // a uniform size, so we only set the entry size for a
3892
        // 32-bit target.
3893
        if (parameters->target().get_size() == 32)
3894
          hashsec->set_entsize(4);
3895
        if (odyn != NULL)
3896
          odyn->add_section_address(elfcpp::DT_GNU_HASH, hashsec);
3897
--
Line 3900 Link Here
3897
      if (odyn != NULL)
3898
      odyn->add_section_address(elfcpp::DT_HASH, hashsec);

Return to bug 13597