aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-01-15 04:58:34 +0000
committerDoug Kwan <dougkwan@google.com>2010-01-15 04:58:34 +0000
commit41263c058cc15b551b254ac040a29886edd7d8df (patch)
tree1f9742ab479469ae201b893945e85703c2a64656 /gold/output.cc
parent459e9b03e8f880f6016c3a15b26a4541b0a21e55 (diff)
downloadgdb-41263c058cc15b551b254ac040a29886edd7d8df.zip
gdb-41263c058cc15b551b254ac040a29886edd7d8df.tar.gz
gdb-41263c058cc15b551b254ac040a29886edd7d8df.tar.bz2
2010-01-14 Doug Kwan <dougkwan@google.com>
* arm.cc (map, utility): Include headers. (Target_arm::apply_cortex_a8_workaround): New method. (Arm_relobj::do_relocate_sections): Apply any Cortex-A8 workaround. (Target_arm::Scan::local): Handle R_ARM_THM_JUMP24, R_ARM_THM_JUMP19. (Target_arm::Scan::global): R_ARM_THM_JUMP19. (Target_arm::do_finalize_sections): Set fix_cortex_a8_ according to the --[no-]fix-cortex-a8 command line options. (Target_arm::Relocate::relocate): Handle R_ARM_JUMP19. (Target_arm::relocate_stub): Use addend in instruction template. * options.h (DEFINE_bool): Set the user-set flag. (General_options): Add --[no-]-fix-cortex options. * output.cc (Output_section::convert_input_sections_to_relaxed_sections) : Update fast look-up map after conversion.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/output.cc b/gold/output.cc
index bb61d86..634249f 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -2272,6 +2272,15 @@ Output_section::convert_input_sections_to_relaxed_sections(
relaxed_sections,
map,
&this->input_sections_);
+
+ // Update fast look-up map.
+ if (this->is_relaxed_input_section_map_valid_)
+ for (size_t i = 0; i < relaxed_sections.size(); ++i)
+ {
+ Output_relaxed_input_section* poris = relaxed_sections[i];
+ Input_section_specifier iss(poris->relobj(), poris->shndx());
+ this->relaxed_input_section_map_[iss] = poris;
+ }
}
// Update the output section flags based on input section flags.