aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-12-03 05:30:59 +0000
committerAlan Modra <amodra@gmail.com>2012-12-03 05:30:59 +0000
commitec661b9dca95a55df264edaaa430dd6183ad2adf (patch)
tree3fe1dd21cc67d3af02e77b2a761128f3f5052e4b /gold/arm.cc
parent0f6752b51fa8d4e6119c662eb17520f7ee5a6007 (diff)
downloadgdb-ec661b9dca95a55df264edaaa430dd6183ad2adf.zip
gdb-ec661b9dca95a55df264edaaa430dd6183ad2adf.tar.gz
gdb-ec661b9dca95a55df264edaaa430dd6183ad2adf.tar.bz2
* layout.h (Layout::get_executable_sections): Declare.
* layout.cc (Layout::get_executable_sections): New function. * arm.cc (Target_arm::group_sections): Use it. (Arm_output_section::group_sections): Delete now redundant test. * output.cc (Output_reloc::Output_reloc): Add is_relative. param to handle relative relocs. * output.h (Output_reloc::Output_reloc <absolute reloc>): Likewise. (Output_data_reloc::add_absolute): Adjust. (Output_data_reloc::add_relative): New function. (Output_data::reset_data_size): New function. (Output_relaxed_input_section::set_relobj, set_shndx): New functions. (Output_section::set_addralign): New function. (Output_section::checkpoint_set_addralign): New function. (Output_section::clear_section_offsets_need_adjustment): New function. (Output_section::input_sections): Make public. * powerpc.cc (class Output_data_brlt_powerpc): New. (class Stub_table, class Stub_control): New. (Powerpc_relobj::has14_, set_has_14bit_branch, has_14bit_branch, stub_table_, set_stub_table, stub_table): New vectors and accessor functions. (Target_powerpc::do_may_relax, do_relax, push_branch, new_stub_table, stub_tables, brlt_section, group_sections, add_branch_lookup_table, find_branch_lookup_table, write_branch_lookup_table, make_brlt_section): New functions. (Target_powerpc::struct Sort_sections, class Branch_info): New. (Target_powerpc::brlt_section_, stub_tables_, branch_lookup_table_, branch_info_): New vars. (Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Don't make call stubs here. (Output_data_glink): Remove all call stub handling from this class. (Target_powerpc::Scan::local, global): Save interesting branch relocs and relocs for ifunc. Adjust calls to plt entry functions. (Target_powerpc::do_finalize_sections): Only make reg save/restore functions on final link. (Target_powerpc::Relocate::relocate): Adjust lookup of call stubs. Handle long branch destinations too. (Target_powerpc::do_dynsym_value, do_plt_address_for_global, do_plt_address_for_local): Adjust lookup of plt call stubs.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index a98004b..736a4ae 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -5644,10 +5644,6 @@ Arm_output_section<big_endian>::group_sections(
Target_arm<big_endian>* target,
const Task* task)
{
- // We only care about sections containing code.
- if ((this->flags() & elfcpp::SHF_EXECINSTR) == 0)
- return;
-
// States for grouping.
typedef enum
{
@@ -11442,7 +11438,7 @@ Target_arm<big_endian>::group_sections(
{
// Group input sections and insert stub table
Layout::Section_list section_list;
- layout->get_allocated_sections(&section_list);
+ layout->get_executable_sections(&section_list);
for (Layout::Section_list::const_iterator p = section_list.begin();
p != section_list.end();
++p)