Lines Matching refs:Target_powerpc

928 	* powerpc.cc (Target_powerpc::local_reloc_may_be_function_pointer):
930 (Target_powerpc::global_reloc_may_be_function_pointer): Likewise.
1112 (Target_powerpc::Relocate::relocate): Correct overflow checking
1123 * powerpc.cc (Target_powerpc::Scan::local, global): Support
1125 (Target_powerpc::Relocate::relocate): Likewise.
1279 * powerpc.cc (Target_powerpc::glink_section): Provide non-const
1281 (Target_powerpc::Branch_info::make_stub): Make global entry stubs.
1295 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Add target
1297 (Target_powerpc::Scan::local, global): Restrict opd lookup to
1301 (Target_powerpc::symval_for_branch): Assert if called for
1303 (Target_powerpc::Relocate::relocate): Use global entry plt
1305 (Target_powerpc::Relocate::relocate): Don't call
1308 (Target_powerpc::do_dynsym_value): Set symbols to global entry
1310 (Target_powerpc::do_plt_address_for_global): Similarly.
1361 (Target_powerpc::Scan::get_reference_flags): Add target param.
1363 (Target_powerpc::Branch_info::make_stub): Adjust get_reference_flags
1365 (Target_powerpc::Scan::global): Use Symbol::needs_dynamic_reloc.
1366 (Target_powerpc::Relocate::relocate): Use Symbol::use_plt_offset.
1461 (Target_powerpc::first_plt_entry_offset, plt_entry_size): Inline
1463 (Target_powerpc::abiversion, set_abiversion, stk_toc): New functions.
1466 (Target_powerpc::do_define_standard_symbols): Define ".TOC.".
1467 (Target_powerpc::Branch_info::make_stub): Adjust stub destination
1469 (Target_powerpc::do_relax): No thread safe barriers needed for
1478 and use Target_powerpc::first_plt_entry_offset().
1489 (Target_powerpc::Relocate::relocate): Replaces nop after call
1494 * powerpc.cc (Target_powerpc::Scan::check_non_pic): Handle new relocs.
1495 (Target_powerpc::Scan::global, local): Likewise.
1496 (Target_powerpc::Relocate::relocate): Likewise. Check for overflow
1543 * powerpc.cc (Target_powerpc): Likewise.
1701 * powerpc.cc (Target_powerpc::symval_for_branch): Use it.
1786 * powerpc.cc (Target_powerpc::write_branch_lookup_table): Use
1791 * powerpc.cc (Target_powerpc::Relocate::relocate): Update self-call
1811 (Target_powerpc::do_relax): Call the above.
1815 * powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
1820 * powerpc.cc (Target_powerpc::do_gc_add_reference): Test dst_shndx
1822 (Target_powerpc::do_gc_mark_symbols): Likewise for sym->shndx().
1823 (Target_powerpc::do_function_location): Likewise for loc->shndx.
1957 * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
2013 (Target_powerpc::group_sections): Handle corner case.
2014 (Target_powerpc::Branch_info::make_stub): Handle case where
2016 (Target_powerpc::Relocate::relocate): Likewise.
2021 * powerpc.cc (Target_powerpc::make_brlt_section): Name section
2058 * powerpc.cc (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Make
2060 (Target_powerpc::rela_dyn_section): New overloaded function.
2061 (Target_powerpc::plt_, iplt_): Elucidate.
2065 (Target_powerpc::Scan::local, global): Adjust reloc_needs_plt_for_ifunc
2069 (Target_powerpc::Relocate::relocate): Don't use plt entry value
2080 (Target_powerpc::do_can_check_for_function_pointers): New predicate.
2081 (Target_powerpc::Scan::local_reloc_may_be_function_pointer): Return
2083 (Target_powerpc::Scan::global_reloc_may_be_function_pointer): Likewise.
2118 (Target_powerpc::do_function_location): New function.
2121 (Target_powerpc::do_make_elf_object): Make a Powerpc_dynobj.
2156 (Target_powerpc::symval_for_branch): Add symtab param. Update
2158 (Target_powerpc::do_gc_add_reference): Don't cast dynamic object
2264 * powerpc.cc (Target_powerpc::do_plt_fde_location): New function.
2265 (Target_powerpc::has_glink): New function.
2266 (Target_powerpc::do_relax): Add eh_frame info for stubs.
2274 (Target_powerpc::make_glink_section): Call add_eh_frame.
2348 (Target_powerpc::symval_for_branch): Ditto.
2364 * powerpc.cc (Target_powerpc::do_relax): Default shared libs to
2510 (Target_powerpc::Scan::local, global): Track tls optimization
2513 (Target_powerpc::Relocate::relocate): Update to use Track_tls.
2523 (Target_powerpc::Scan::local, global): Call set_has_small_toc_reloc.
2525 (Target_powerpc::do_finalize_sections): Sort toc sections.
2526 (Target_powerpc::Relocate::relocate): Update toc_optimize test.
2545 (Target_powerpc::Branch_info::make_stub): Don't omit addend.
2556 (Output_data_glink, Stub_table, Target_powerpc): Explicitly
2572 (Target_powerpc::Relocate::relocate): Optimize toc access sequences.
2578 * powerpc.cc (Target_powerpc::plt_thread_safe): New access function
2581 (Target_powerpc::do_relax): Look for thread creation symbols to
2601 (Target_powerpc::do_define_standard_symbols): New function.
2629 (Target_powerpc::do_may_relax, do_relax, push_branch,
2633 (Target_powerpc::struct Sort_sections, class Branch_info): New.
2634 (Target_powerpc::brlt_section_, stub_tables_, branch_lookup_table_,
2636 (Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Don't
2639 (Target_powerpc::Scan::local, global): Save interesting branch
2641 (Target_powerpc::do_finalize_sections): Only make reg save/restore
2643 (Target_powerpc::Relocate::relocate): Adjust lookup of call stubs.
2645 (Target_powerpc::do_dynsym_value, do_plt_address_for_global,
2650 * powerpc.c (Target_powerpc::Scan::global): Don't emit relative
2655 * powerpc.cc (Target_powerpc::make_plt_section): Add symtab
2690 (Target_powerpc::got_section): Make public.
2691 (Target_powerpc::scan_relocs): Move code setting symbols..
2708 * powerpc.cc (Target_powerpc::relocate_relocs): Likewise.
2854 (Target_powerpc::relocate_section): Don't zap opd relocs. Supply
2859 * powerpc.cc (Target_powerpc::Scan::local, global): Always emit
2862 (Target_powerpc::do_gc_add_reference): Don't add for dynamic objects.
2863 (Target_powerpc::scan_relocs): Define _GLOBAL_OFFSET_TABLE_ early.
2864 (Target_powerpc::Relocate:relocate): REL32 reloc may be unaligned.
2878 * powerpc.cc (Target_powerpc::define_save_restore_funcs): New func.
2879 (Target_powerpc::do_finalize_sections): Call it.
2881 (Target_powerpc::symval_for_branch): Only look up .opd entry for
2888 (Target_powerpc::do_gc_mark_symbol): Delay marking function code
2890 (Target_powerpc::gc_process_relocs): Call process_gc_mark.
2896 (Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Likewise.
2900 * powerpc.cc (Target_powerpc::do_plt_address_for_local,
2906 (Target_powerpc::make_plt_entry): ..use to avoid unnecessary
2908 (Target_powerpc::make_local_ifunc_plt_entry): Likewise.
2909 (Target_powerpc::make_iplt_section): Remove symtab param. Don't
2911 (Target_powerpc::do_finalize_sections): Instead set up __rela_iplt
2917 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Accept any
2919 (Target_powerpc::Scan::local): Correct ifunc handling. Allow
2921 (Target_powerpc::Scan::global): Correct ifunc handling.
2922 (Target_powerpc::Relocate::relocate): Correct local sym glink
2925 (Target_powerpc::do_dynsym_value): Simplify.
2951 * powerpc.cc (Target_powerpc::iplt_): New output section.
2952 (Target_powerpc::iplt_section, make_iplt_section,
2954 (Target_powerpc::make_plt_entry): Handle ifunc syms.
2955 Target_powerpc::plt_entry_count): Count iplt entries too.
2958 (Target_powerpc::make_plt_section): Create reloc section here instead.
2966 (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
2967 (Target_powerpc::Scan::local, global): Handle ifunc syms.
2968 (Target_powerpc::Relocate::relocate): Likewise.
2969 (Target_powerpc::do_dynsym_value): Use glink stub, not plt entry.
2981 (Target_powerpc::do_finalize_sections): Omit global symbols defined
3003 * powerpc (Target_powerpc::Scan::local): Likewise. Use
3006 (Target_powerpc::Scan::global): Similarly detect and handle
3011 (Target_powerpc::relocate_section): Zero out discarded opd
3060 * powerpc.cc (Target_powerpc::do_tls_offset_for_local,
3062 (Target_powerpc::Scan::local): Correct TLS relocations and got
3064 (Target_powerpc::Scan::global): Don't emit unnecessary
3094 (Target_powerpc::do_gc_add_reference): New function.
3095 (Target_powerpc::gc_process_relocs): Call gc()->add_reference on
3097 (Target_powerpc::do_gc_mark_symbol): New function.
3143 (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
3144 (Target_powerpc::Scan::local): Handle REL64.
3145 (Target_powerpc::Scan::global): Likewise, and dynamic relocs
3147 (Target_powerpc::symval_for_branch): New function, extracted from..
3148 (Target_powerpc::Relocate::relocate): ..here. Correct plt call
3170 * powerpc.cc (Target_powerpc): Likewise.
3171 (Target_powerpc::Scan::local, global): Handle R_POWERPC_TLS. Ensure
3174 (Target_powerpc::Relocate::relocate): Correct local dynamic value.
3175 (Target_powerpc::relocate_relocs): Adjust relocs emitted for
3189 (Target_powerpc): Add tp_offset, dtp_offset. Rename
3191 (Target_powerpc::Relocate::enum skip_tls): New.
3192 (Target_powerpc::call_tls_get_addr_): New var.
3193 (Target_powerpc::is_branch_reloc): Move to file scope.
3194 (Target_powerpc::relocate_tls, optimize_tls_reloc): Delete.
3195 (Target_powerpc::optimize_tls_gd, optimize_tls_ld, optimize_tls_ie):
3197 (Target_powerpc::enum Got_type): Delete old values, add new ones.
3211 (Target_powerpc::tlsld_got_offset): Use add_constant_pair.
3212 (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
3213 (Target_powerpc::Scan::local, global): Emit relative dynamic reloc
3217 (Target_powerpc::do_finalize_sections): Test for NULL sections.
3218 (Target_powerpc::Relocate::relocate): Use plt call stub as value
3222 (Target_powerpc::relocate_for_relocatable): Handle zero r_sym.
3313 (Target_powerpc): Add Address typedef and invalid_address. Use
3315 (Target_powerpc::is_branch_reloc): New function.
3324 (Target_powerpc::Scan::local): Handle more relocs.
3325 (Target_powerpc::do_finalize_sections): Set up DT_PPC64_GLINK.
3326 (Target_powerpc::Relocate::relocate): Correct toc base calculation.
3329 (Target_powerpc::relocate_for_relocatable): Check return from
3365 * powerpc.cc (Target_powerpc::do_output_section_name): New function.
3374 (Target_powerpc::Scan::local): Ignore R_PPC64_TOCSAVE.
3375 (Target_powerpc::Relocate::relocate): Likewise.
3387 (Target_powerpc::make_plt_entry): Don't special case R_PPC_PLTREL24
3389 (Target_powerpc::Scan::global): Nor on make_plt_entry call.
3390 (Target_powerpc::Relocate::relocate): Nor on glink->find_entry call.
3417 (Target_powerpc::do_make_elf_object): New function.
3470 * powerpc.cc (Target_powerpc::relocate_tls): Likewise.
3622 * powerpc.cc (Target_powerpc::powerpc_info): Likewise.
3921 * powerpc.cc (Target_powerpc::Scan::global): Adjust add_global_relative
5447 * powerpc.cc (Target_powerpc::powerpc_info) [all versions]:
7279 * powerpc.cc (Target_powerpc::Scan::get_reference_flags): New function.
7280 (Target_powerpc::Scan::global): Use it.
7281 (Target_powerpc::Scan::scan_reloc_for_stub): Likewise.
7282 (Target_powerpc::Relocate::relocate): Likewise.
8035 * powerpc.cc (Target_powerpc::got_size): Add const.
8036 (Target_powerpc::got_entry_count): New function.
8037 (Target_powerpc::plt_entry_count): New function.
8038 (Target_powerpc::first_plt_entry_offset): New function.
8039 (Target_powerpc::plt_entry_size): New function.
8317 * powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
8417 * powerpc.cc (Target_powerpc<big_endian>::gc_process_relocs): Add
8526 * powerpc.cc (Target_powerpc::relocate): Likewise.
9972 * powerpc.cc (Target_powerpc::make_plt_entry): Force .rela.dyn to be
9974 (Target_powerpc::do_finalize_sections): Update to pass true for
10719 * powerpc.cc (Target_powerpc::do_finalize_sections): Likewise.
11377 * gold/powerpc.cc (Target_powerpc::powerpc_info): Initialize new
11445 * powerpc.cc (Target_powerpc::do_finalize_sections): Add an additional
11711 * powerpc.cc (Target_powerpc::do_finalize_sections): Likewise.
11822 * powerpc.cc (Target_powerpc::do_finalize_sections): Add unnamed
12499 * powerpc.cc (Target_powerpc::relocate_section): Add
12563 * powerpc.cc (Target_powerpc::may_need_copy_reloc): Remove.
12564 (Target_powerpc::Scan::global): Use Symbol::may_need_copy_reloc
12565 instead of the removed Target_powerpc::may_need_copy_reloc.
12566 * sparc.cc (Target_powerpc::may_need_copy_reloc): Remove.
12570 * x86_64.cc (Target_powerpc::may_need_copy_reloc): Remove.
13315 * powerpc.cc (Target_powerpc::powerpc_info) [all versions]:
13671 * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
13968 * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
14225 * powerpc.cc (Target_powerpc::gc_process_relocs): New function.
14665 * powerpc.cc (Target_powerpc::do_is_defined_by_abi): Likewise.
15138 * powerpc.cc (Target_powerpc::copy_reloc): Likewise.