summaryrefslogtreecommitdiffstats
path: root/gold/stringpool.h
Commit message (Collapse)AuthorAgeFilesLines
* * merge.cc (Output_merge_string::do_add_input_section): Count stringsCary Coutant2010-08-031-4/+22
| | | | | | | | | | | to reserve space in merged_strings vector. Keep total input size for stats. (Output_merge_string::do_print_merge_stats): Print total input size. * merge.h (Output_merge_string): Add input_size_ field. * stringpool.cc (Stringpool_template::string_length): Move implementations out of Stringpool_template class and place in stringpool.h. * stringpool.h (string_length): Move out of Stringpool_template.
* 2010-03-19 Doug Kwan <dougkwan@google.com>Doug Kwan2010-03-191-1/+3
| | | | | | | | | | | | | | | | | | | * arm.cc (Stub_table::Stub_table): Initialize new data members Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_. (Stub_table::add_reloc_stub): Assign stub offset and update Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_. (Stub_table::reloc_stubs_size_, Stub_table::reloc_stubs_addralign_): New data members. (Stub_table::update_data_size_and_addralign): Use Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_ instead of going over all reloc stubs. (Stub_table::finalize_stubs): Do not assign reloc stub offsets. * stringpool.cc (Stringpool_template::Stringpool_template): Initialize Stringpool_template::offset_ to size of Stringpool_char. (Stringpool_template::new_key_offset): Remove code to initialize Stringpool_template::offset_. * stringpool.h (Stringpool_template::set_no_zero_null): Set Stringpool_template::offset_ to zero.
* 2010-03-15 Doug Kwan <dougkwan@google.com>Doug Kwan2010-03-161-17/+29
| | | | | | | | | | | | | | | | | | | | * stringpool.cc (Stringpool_template::Stringpool_template): Initialize offset_. (Stringpool_template::new_key_offset): New method. (Stringpool_template::add_string): Assign offsets when adding new strings. (Stringpool_template::set_string_offsets): Do not set string offsets when not optimizing. * stringpool.h (Chunked_vector::Chunked_vector): Initialize data member size_. (Chunked_vector::clear): Clear size_. (Chunked_vector::reserve): Call reserve method of all Element_vectors. (Chunked_vector::size): Return size_. (Chunked_vector::push_back): Use size_ to find insert position. (Chunked_vector::size_): New data member. (Stringpool_template::set_no_zero_null): Assert string set is empty. (Stringpool_template::new_key_offset): New method declaration. (Stringpool_template::offset_): New data member.
* PR 10133Ian Lance Taylor2009-06-231-0/+8
| | | | | | | | | | | * stringpool.h (class Stringpool_template): Add optimize_ field. (Stringpool_template::set_optimize): New function. * stringpool.cc (Stringpool_template::Stringpool_template): Initialize optimize_ field. (Stringpool_template::set_string_offsets): Test local optimize fild rather than parameter. * layout.cc (Layout::Layout): Call set_optimize on the section name stringpool.
* * stringpool.cc (Stringpool_template::add_with_length): Set key toIan Lance Taylor2008-07-241-2/+2
| | | | | | | | | | array size plus one. (Stringpool_template::set_string_offsets): Subtract one from key before using it as an array index. (Stringpool_template::get_offset_with_length): Likewise. (Stringpool_template::write_to_buffer): Likewise. * stringpool.h (Stringpool_template::get_offset_from_key): Likewise.
* Update copyright years. Update language files.Ian Lance Taylor2008-03-131-1/+1
|
* Move Stringpool offsets into a chunked_vector indexed by keys.Ian Lance Taylor2007-12-191-13/+94
|
* Use string length when available when calling Stringpool. CompareIan Lance Taylor2007-12-191-4/+10
| | | | pointers first when looking up Stringpool entries.
* Add section_size_type and section_offset_type, use them to replace aIan Lance Taylor2007-12-181-6/+6
| | | | lot of instances of off_t.
* From Craig Silverstein: size hash tables to avoid resizing.Ian Lance Taylor2007-12-141-0/+6
|
* Rework Stringpool to not compute the hash code twice when adding a newIan Lance Taylor2007-12-051-33/+57
| | | | string.
* Stringpool stats. Also make Symbol_table support functions inline.Ian Lance Taylor2007-12-051-0/+4
|
* Compress all debug sections.Ian Lance Taylor2007-12-011-1/+1
|
* From Craig Silverstein: Add support for compressing .debug_str section.Ian Lance Taylor2007-11-301-0/+10
|
* Add an option for Stringpools to not copy strings.Ian Lance Taylor2007-10-121-11/+10
|
* Add licensing text to every source file.Ian Lance Taylor2007-09-221-0/+20
|
* Set Stringpool zero_null option via a call, not a default constructorIan Lance Taylor2007-09-211-5/+9
| | | | argument.
* Note that a Stringpool keeps a copy of a string.Ian Lance Taylor2007-09-191-0/+3
|
* Better comments for Stringpool.Ian Lance Taylor2007-09-191-31/+71
|
* Compute string lengths before sorting. From Craig Silverstein.Ian Lance Taylor2007-09-181-4/+14
|
* Add support for SHF_MERGE sections.Ian Lance Taylor2007-05-161-28/+43
|
* Hash tables, dynamic section, i386 PLT, gold_assert.Ian Lance Taylor2006-11-291-1/+4
|
* Rework stringpool and hash tables so that we always generate the sameIan Lance Taylor2006-11-071-15/+36
| | | | output regardless of randomize_va_space.
* Snapshot. Now able to produce a minimal executable which actuallyIan Lance Taylor2006-09-291-10/+62
| | | | runs.
* g++ 3.2.2 portability fixes.Ian Lance Taylor2006-09-261-0/+6
|
* Another snapshot of the current state of the sources. Gets to theIan Lance Taylor2006-08-181-0/+70
point of symbol resolution and can now issue a multiple definition error. Also added target selection infrastructure.
OpenPOWER on IntegriCloud