mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
2e702c99c5
* configure: Regenerate. gold/ * nacl.cc: New file. * nacl.h: New file. * Makefile.am (CCFILES, HFILES): Add them. * Makefile.in: Regenerate. * i386.cc (Output_data_plt_i386_nacl): New class. (Output_data_plt_i386_nacl_exec): New class. (Output_data_plt_i386_nacl_dyn): New class. (Target_i386_nacl): New class. (Target_selector_i386_nacl): New class. (target_selector_i386): Use it instead of Target_selector_i386. * x86_64.cc (Output_data_plt_x86_64_nacl): New class. (Target_x86_64_nacl): New class. (Target_selector_x86_64_nacl): New class. (target_selector_x86_64, target_selector_x32): Use it instead of Target_selector_x86_64. * arm.cc (Output_data_plt_arm_nacl): New class. (Target_arm_nacl): New class. (Target_selector_arm_nacl): New class. (target_selector_arm, target_selector_armbe): Use it instead of Target_selector_arm. * target-select.cc (select_target): Take new Input_file* and off_t arguments, pass them on to recognize method of selector. * object.cc (make_elf_sized_object): Update caller. * parameters.cc (parameters_force_valid_target): Likewise. * incremental.cc (make_sized_incremental_binary): Likewise. * target-select.h: Update decl. (Target_selector::recognize): Take new Input_file* argument, pass it on to do_recognize. (Target_selector::do_recognize): Take new Input_file* argument. * freebsd.h (Target_selector_freebsd::do_recognize): Likewise. * powerpc.cc (Target_selector_powerpc::do_recognize): Likewise. * sparc.cc (Target_selector_sparc::do_recognize): Likewise. * testsuite/testfile.cc (Target_selector::do_recognize): Likewise. * target.h (Target::Target_info): New members isolate_execinstr and rosegment_gap. (Target::isolate_execinstr, Target::rosegment_gap): New methods. * arm.cc (Target_arm::arm_info): Update initializer. * i386.cc (Target_i386::i386_info): Likewise. * powerpc.cc (Target_powerpc::powerpc_info): Likewise. * sparc.cc (Target_sparc::sparc_info): Likewise. * x86_64.cc (Target_x86_64::x86_64_info): Likewise. * testsuite/testfile.cc (Target_test::test_target_info): Likewise. * layout.cc (Layout::attach_allocated_section_to_segment): Take new const Target* argument. If target->isolate_execinstr(), act like --rosegment. (Layout::find_first_load_seg): Take new const Target* argument; if target->isolate_execinstr(), reject PF_X segments. (Layout::relaxation_loop_body): Update caller. (Layout::set_segment_offsets): If target->isolate_execinstr(), reset file offset to zero when we hit LOAD_SEG, and then do a second loop over the segments before LOAD_SEG to reassign offsets after addresses have been determined. Handle target->rosegment_gap(). (Layout::attach_section_to_segment): Take new const Target* argument; pass it to attach_allocated_section_to_segment. (Layout::make_output_section): Update caller. (Layout::attach_sections_to_segments): Take new const Target* argument; pass it to attach_section_to_segment. * gold.cc (queue_middle_tasks): Update caller. * layout.h (Layout): Update method decls with new arguments. * arm.cc (Target_arm::Target_arm): Take optional argument for the Target_info pointer to use. (Target_arm::do_make_data_plt): New virtual method. (Target_arm::make_data_plt): New method that calls it. (Target_arm::make_plt_entry): Use it. (Output_data_plt_arm::Output_data_plt_arm): Take additional argument for the section alignment. (Output_data_plt_arm::do_first_plt_entry_offset): New abstract virtual method. (Output_data_plt_arm::first_plt_entry_offset): Call it. (Output_data_plt_arm::do_get_plt_entry_size): New abstract virtual method. (Output_data_plt_arm::get_plt_entry_size): Call it. (Output_data_plt_arm::do_fill_plt_entry): New abstract virtual method. (Output_data_plt_arm::fill_plt_entry): New method that calls it. (Output_data_plt_arm::do_fill_first_plt_entry): New abstract virtual method. (Output_data_plt_arm::fill_first_plt_entry): New method that calls it. (Output_data_plt_arm::set_final_data_size): Use get_plt_entry_size method instead of sizeof(plt_entry). (Output_data_plt_arm::add_entry): Likewise. Use first_plt_entry_offset method instead of sizeof(first_plt_entry). (Target_arm::first_plt_entry_offset): Call method on this->plt_ rather than static method. (Target_arm::plt_entry_size): Likewise. (Output_data_plt_arm::first_plt_entry, Output_data_plt_arm::plt_entry): Move to ... (Output_data_plt_arm_standard): ... here, new class. (Output_data_plt_arm::do_write): Move guts of PLT filling to... (Output_data_plt_arm_standard::do_fill_first_plt_entry): ... here ... (Output_data_plt_arm_standard::do_fill_plt_entry): ... and here. * x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64): Take additional argument for the PLT entry size. (Output_data_plt_x86_64::get_tlsdesc_plt_offset): Use get_plt_entry_size method rather than plt_entry_size variable. (Output_data_plt_x86_64::reserve_slot): Likewise. (Output_data_plt_x86_64::do_adjust_output_section): Likewise. (Output_data_plt_x86_64::add_entry): Likewise. (Output_data_plt_x86_64::add_local_ifunc_entry): Likewise. (Output_data_plt_x86_64::address_for_global): Likewise. (Output_data_plt_x86_64::address_for_local): Likewise. (Output_data_plt_x86_64::set_final_data_size): Likewise. (Output_data_plt_x86_64::first_plt_entry_offset): Likewise. Make method non-static. (Output_data_plt_x86_64::do_get_plt_entry_size): New abstract virtual method. (Output_data_plt_x86_64::get_plt_entry_size): Just call that. (Output_data_plt_x86_64::do_add_eh_frame): New abstract virtual method. (Output_data_plt_x86_64::add_eh_frame): New method to call it. (Output_data_plt_x86_64::do_fill_first_plt_entry): New abstract virtual method. (Output_data_plt_x86_64::fill_first_plt_entry): New method to call it. (Output_data_plt_x86_64::do_fill_plt_entry): New abstract virtual method. (Output_data_plt_x86_64::fill_plt_entry): New method to call it. (Output_data_plt_x86_64::do_fill_tlsdesc_entry): New abstract virtual method. (Output_data_plt_x86_64::fill_tlsdesc_entry): New method to call it. (Output_data_plt_x86_64::plt_entry_size) (Output_data_plt_x86_64::first_plt_entry) (Output_data_plt_x86_64::plt_entry) (Output_data_plt_x86_64::tlsdesc_plt_entry) (Output_data_plt_x86_64::plt_eh_frame_fde_size) (Output_data_plt_x86_64::plt_eh_frame_fde): Move to ... (Output_data_plt_x86_64_standard): ... here, new class. (Target_x86_64::Target_x86_64): Take optional argument for the Target_info pointer to use. (Target_x86_64::do_make_data_plt): New virtual method. (Target_x86_64::make_data_plt): New method to call it. (Target_x86_64::init_got_plt_for_update): Use that. Call this->plt_->add_eh_frame method here. (Output_data_plt_x86_64::init): Don't do add_eh_frame_for_plt here. (Target_x86_64::first_plt_entry_offset): Call method on this->plt_ rather than static method. (Target_x86_64::plt_entry_size): Likewise. (Output_data_plt_x86_64::do_write): Use get_plt_entry_size method rather than plt_entry_size variable. Move guts of PLT filling to... (Output_data_plt_x86_64_standard::do_fill_first_plt_entry): ... here ... (Output_data_plt_x86_64_standard::do_fill_plt_entry): ... and here ... (Output_data_plt_x86_64_standard::do_fill_tlsdesc_entry): ... and here. * i386.cc (Output_data_plt_i386::Output_data_plt_i386): Take additional argument for the section alignment. Don't do add_eh_frame_for_plt here. (Output_data_plt_i386::first_plt_entry_offset): Make the method non-static. Use get_plt_entry_size method rather than plt_entry_size variable. (Output_data_plt_i386::do_get_plt_entry_size): New abstract virtual method. (Output_data_plt_i386::get_plt_entry_size): Call it. (Output_data_plt_i386::do_add_eh_frame): New abstract virtual method. (Output_data_plt_i386::add_eh_frame): New method to call it. (Output_data_plt_i386::do_fill_first_plt_entry): New abstract virtual method. (Output_data_plt_i386::fill_first_plt_entry): New method to call it. (Output_data_plt_i386::do_fill_plt_entry): New abstract virtual method. (Output_data_plt_i386::fill_plt_entry): New method to call it. (Output_data_plt_i386::set_final_data_size): Use get_plt_entry_size method instead of plt_entry_size. (Output_data_plt_i386::plt_entry_size) (Output_data_plt_i386::plt_eh_frame_fde_size) (Output_data_plt_i386::plt_eh_frame_fde): Move to ... (Output_data_plt_i386_standard): ... here, new class. (Output_data_plt_i386_exec): New class. (Output_data_plt_i386::exec_first_plt_entry): Move to ... (Output_data_plt_i386_exec::first_plt_entry): ... here. (Output_data_plt_i386::exec_plt_entry): Move to ... (Output_data_plt_i386_exec::plt_entry): ... here. (Output_data_plt_i386_dyn): New class. (Output_data_plt_i386::first_plt_entry): Move to ... (Output_data_plt_i386_dyn::first_plt_entry): ... here. (Output_data_plt_i386::dyn_plt_entry): Move to ... (Output_data_plt_i386_dyn::plt_entry): ... here. (Target_i386::Target_i386): Take optional argument for the Target_info pointer to use. (Target_i386::do_make_data_plt): New virtual method. (Target_i386::make_data_plt): New method to call it. (Target_i386::make_plt_section): Use that. Call this->plt_->add_eh_frame method here. (Output_data_plt_i386::add_entry): Use get_plt_entry_size method rather than plt_entry_size variable. (Output_data_plt_i386::add_local_ifunc_entry): Likewise. (Output_data_plt_i386::address_for_local): Likewise. (Output_data_plt_i386::do_write): Likewise. Move guts of PLT filling to... (Output_data_plt_i386_exec::do_fill_first_plt_entry): ... here ... (Output_data_plt_i386_exec::do_fill_plt_entry): ... and here ... (Output_data_plt_i386_dyn::do_fill_first_plt_entry): ... and here ... (Output_data_plt_i386_dyn::do_fill_plt_entry): ... and here. Change-Id: Id24b95600489835ff5e860a39c147203d4380c2b |
||
---|---|---|
.. | ||
arm_abs_global.s | ||
arm_abs_global.sh | ||
arm_abs_lib.s | ||
arm_attr_merge_6a.s | ||
arm_attr_merge_6b.s | ||
arm_attr_merge_7a.s | ||
arm_attr_merge_7b.s | ||
arm_attr_merge.sh | ||
arm_bl_in_range.s | ||
arm_bl_out_of_range.s | ||
arm_branch_in_range.sh | ||
arm_branch_out_of_range.sh | ||
arm_branch_range.t | ||
arm_cortex_a8_b_cond.s | ||
arm_cortex_a8_b_local.s | ||
arm_cortex_a8_b.s | ||
arm_cortex_a8_bl.s | ||
arm_cortex_a8_blx.s | ||
arm_cortex_a8_local_reloc.s | ||
arm_cortex_a8_local.s | ||
arm_cortex_a8.sh | ||
arm_exidx_test.s | ||
arm_exidx_test.sh | ||
arm_farcall_arm_arm.s | ||
arm_farcall_arm_arm.sh | ||
arm_farcall_arm_thumb.s | ||
arm_farcall_arm_thumb.sh | ||
arm_farcall_thumb_arm.s | ||
arm_farcall_thumb_arm.sh | ||
arm_farcall_thumb_thumb.s | ||
arm_farcall_thumb_thumb.sh | ||
arm_fix_1176.s | ||
arm_fix_1176.sh | ||
arm_fix_v4bx.s | ||
arm_fix_v4bx.sh | ||
arm_thm_jump8.s | ||
arm_thm_jump8.t | ||
arm_thm_jump11.s | ||
arm_thm_jump11.t | ||
arm_unaligned_reloc.s | ||
arm_unaligned_reloc.sh | ||
basic_test.cc | ||
binary_test.cc | ||
binary_unittest.cc | ||
binary.in | ||
common_test_1_v1.c | ||
common_test_1_v2.c | ||
common_test_1.c | ||
common_test_2.c | ||
common_test_3.c | ||
constructor_test.cc | ||
copy_test_1.cc | ||
copy_test_2.cc | ||
copy_test_v1.cc | ||
copy_test.cc | ||
debug_msg.cc | ||
debug_msg.sh | ||
discard_locals_relocatable_test.c | ||
discard_locals_test.c | ||
discard_locals_test.sh | ||
dyn_weak_ref_1.c | ||
dyn_weak_ref_2.c | ||
dyn_weak_ref.sh | ||
dynamic_list.sh | ||
dynamic_list.t | ||
exception_test_1.cc | ||
exception_test_2.cc | ||
exception_test_main.cc | ||
exception_test.h | ||
exclude_libs_test_1.c | ||
exclude_libs_test_2.c | ||
exclude_libs_test_3.c | ||
exclude_libs_test.c | ||
exclude_libs_test.sh | ||
final_layout.cc | ||
final_layout.sh | ||
gc_comdat_test_1.cc | ||
gc_comdat_test_2.cc | ||
gc_comdat_test.sh | ||
gc_orphan_section_test.cc | ||
gc_orphan_section_test.sh | ||
gc_tls_test.cc | ||
gc_tls_test.sh | ||
gdb_index_test_1.sh | ||
gdb_index_test_2.sh | ||
gdb_index_test_3.c | ||
gdb_index_test_3.sh | ||
gdb_index_test.cc | ||
hidden_test_1.c | ||
hidden_test_main.c | ||
hidden_test.sh | ||
icf_keep_unique_test.cc | ||
icf_keep_unique_test.sh | ||
icf_preemptible_functions_test.cc | ||
icf_preemptible_functions_test.sh | ||
icf_safe_so_test.cc | ||
icf_safe_so_test.sh | ||
icf_safe_test.cc | ||
icf_safe_test.sh | ||
icf_sht_rel_addend_test_1.cc | ||
icf_sht_rel_addend_test_2.cc | ||
icf_sht_rel_addend_test.sh | ||
icf_string_merge_test.cc | ||
icf_string_merge_test.sh | ||
icf_test.cc | ||
icf_test.sh | ||
icf_virtual_function_folding_test.cc | ||
ifunc-sel.h | ||
ifuncdep2.c | ||
ifuncmain1.c | ||
ifuncmain1vis.c | ||
ifuncmain2.c | ||
ifuncmain3.c | ||
ifuncmain4.c | ||
ifuncmain5.c | ||
ifuncmain6pie.c | ||
ifuncmain7.c | ||
ifuncmod1.c | ||
ifuncmod3.c | ||
ifuncmod5.c | ||
ifuncmod6.c | ||
ifuncvar1.c | ||
ifuncvar2.c | ||
ifuncvar3.c | ||
incr_comdat_test_1.cc | ||
incr_comdat_test_2_v1.cc | ||
incr_comdat_test_2_v2.cc | ||
incr_comdat_test_2_v3.cc | ||
incremental_test_1.c | ||
incremental_test_2.c | ||
incremental_test.sh | ||
initpri1.c | ||
initpri2.c | ||
initpri3.c | ||
justsyms_1.cc | ||
justsyms_2.cc | ||
justsyms_exec.c | ||
justsyms_lib.c | ||
justsyms.t | ||
large.c | ||
leb128_unittest.cc | ||
Makefile.am | ||
Makefile.in | ||
many_sections_test.cc | ||
memory_test.s | ||
memory_test.sh | ||
memory_test.t | ||
no_version_test.c | ||
no_version_test.sh | ||
object_unittest.cc | ||
odr_header1.h | ||
odr_header2.h | ||
odr_violation1.cc | ||
odr_violation2.cc | ||
plugin_common_test_1.c | ||
plugin_common_test_2.c | ||
plugin_final_layout.cc | ||
plugin_final_layout.sh | ||
plugin_section_order.c | ||
plugin_test_1.sh | ||
plugin_test_2.sh | ||
plugin_test_3.sh | ||
plugin_test_4.sh | ||
plugin_test_6.sh | ||
plugin_test_7_1.c | ||
plugin_test_7_2.c | ||
plugin_test_7.sh | ||
plugin_test.c | ||
pr12826_1.s | ||
pr12826_2.s | ||
pr12826.sh | ||
protected_1.cc | ||
protected_2.cc | ||
protected_3.cc | ||
protected_4.cc | ||
protected_main_1.cc | ||
protected_main_2.cc | ||
protected_main_3.cc | ||
relro_script_test.t | ||
relro_test_main.cc | ||
relro_test.cc | ||
relro_test.sh | ||
retain_symbols_file_test.sh | ||
script_test_1.cc | ||
script_test_1.t | ||
script_test_2.cc | ||
script_test_2.t | ||
script_test_2a.cc | ||
script_test_2b.cc | ||
script_test_3.sh | ||
script_test_3.t | ||
script_test_4.sh | ||
script_test_4.t | ||
script_test_5.cc | ||
script_test_5.sh | ||
script_test_5.t | ||
script_test_6.sh | ||
script_test_6.t | ||
script_test_7.sh | ||
script_test_7.t | ||
script_test_8.sh | ||
script_test_9.cc | ||
script_test_9.sh | ||
script_test_9.t | ||
script_test_10.s | ||
script_test_10.sh | ||
script_test_10.t | ||
searched_file_test_lib.cc | ||
searched_file_test.cc | ||
split_i386_1.s | ||
split_i386_2.s | ||
split_i386_3.s | ||
split_i386_4.s | ||
split_i386_n.s | ||
split_i386.sh | ||
split_x86_64_1.s | ||
split_x86_64_2.s | ||
split_x86_64_3.s | ||
split_x86_64_4.s | ||
split_x86_64_n.s | ||
split_x86_64.sh | ||
start_lib_test_1.c | ||
start_lib_test_2.c | ||
start_lib_test_3.c | ||
start_lib_test_main.c | ||
strong_ref_weak_def_1.c | ||
strong_ref_weak_def_2.c | ||
strong_ref_weak_def.sh | ||
test.cc | ||
test.h | ||
testfile.cc | ||
testfile.h | ||
testmain.cc | ||
thin_archive_main.cc | ||
thin_archive_test_1.cc | ||
thin_archive_test_2.cc | ||
thin_archive_test_3.cc | ||
thin_archive_test_4.cc | ||
thumb2_branch_range.t | ||
thumb_bl_in_range.s | ||
thumb_bl_out_of_range_local.s | ||
thumb_bl_out_of_range.s | ||
thumb_blx_in_range.s | ||
thumb_blx_out_of_range.s | ||
thumb_branch_range.t | ||
tls_test_c.c | ||
tls_test_file2.cc | ||
tls_test_main.cc | ||
tls_test.cc | ||
tls_test.h | ||
two_file_shared.sh | ||
two_file_test_1_v1.cc | ||
two_file_test_1.cc | ||
two_file_test_1b_v1.cc | ||
two_file_test_1b.cc | ||
two_file_test_2_v1.cc | ||
two_file_test_2.cc | ||
two_file_test_main.cc | ||
two_file_test.h | ||
undef_symbol_main.cc | ||
undef_symbol.cc | ||
undef_symbol.sh | ||
ver_matching_def.cc | ||
ver_matching_test.sh | ||
ver_test_1.cc | ||
ver_test_1.sh | ||
ver_test_2.cc | ||
ver_test_2.script | ||
ver_test_2.sh | ||
ver_test_3.cc | ||
ver_test_4.cc | ||
ver_test_4.script | ||
ver_test_4.sh | ||
ver_test_5.cc | ||
ver_test_5.script | ||
ver_test_5.sh | ||
ver_test_6.c | ||
ver_test_7.cc | ||
ver_test_7.sh | ||
ver_test_8.script | ||
ver_test_9.cc | ||
ver_test_10.script | ||
ver_test_10.sh | ||
ver_test_main_2.cc | ||
ver_test_main.cc | ||
ver_test.h | ||
version_script.map | ||
weak_alias_test_1.cc | ||
weak_alias_test_2.cc | ||
weak_alias_test_3.cc | ||
weak_alias_test_4.cc | ||
weak_alias_test_5.cc | ||
weak_alias_test_main.cc | ||
weak_alias_test.script | ||
weak_plt_main.cc | ||
weak_plt_shared.cc | ||
weak_plt.sh | ||
weak_test.cc | ||
weak_undef_file1.cc | ||
weak_undef_file2.cc | ||
weak_undef_test.cc | ||
weak_undef.h |