diff options
author | Ian Lance Taylor <iant@google.com> | 2006-11-07 04:40:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-11-07 04:40:46 +0000 |
commit | f0641a0b382db7403f04fab3d4e8fac25a2b68af (patch) | |
tree | 54a6fb51e4cc45215470f8cb2812534c1fc911b4 /gold/layout.h | |
parent | 7c8fe5c4802b8ed8863c41264e0bf77e46d6bdcb (diff) | |
download | gdb-f0641a0b382db7403f04fab3d4e8fac25a2b68af.zip gdb-f0641a0b382db7403f04fab3d4e8fac25a2b68af.tar.gz gdb-f0641a0b382db7403f04fab3d4e8fac25a2b68af.tar.bz2 |
Rework stringpool and hash tables so that we always generate the same
output regardless of randomize_va_space.
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/layout.h b/gold/layout.h index bb2b644..fa34617 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -196,8 +196,8 @@ class Layout // Return the output section for NAME, TYPE and FLAGS. Output_section* - get_output_section(const char* name, elfcpp::Elf_Word type, - elfcpp::Elf_Xword flags); + get_output_section(const char* name, Stringpool::Key name_key, + elfcpp::Elf_Word type, elfcpp::Elf_Xword flags); // Create a new Output_section. Output_section* @@ -218,7 +218,7 @@ class Layout // Mapping from input section name/type/flags to output section. We // use canonicalized strings here. - typedef std::pair<const char*, + typedef std::pair<Stringpool::Key, std::pair<elfcpp::Elf_Word, elfcpp::Elf_Xword> > Key; struct Hash_key |