diff options
author | Rahul Chaudhry <rahulchaudhry@google.com> | 2017-02-15 00:37:10 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2017-02-15 00:37:10 -0800 |
commit | 4aebb6312eb5dcd12f2f8420028547584b708907 (patch) | |
tree | 3ddb862e883a0ae0c3cb7f4e517f32b33979c360 /gas | |
parent | 4e746bb68947abd2f64ced0dcf5a00021571e45d (diff) | |
download | fsf-binutils-gdb-4aebb6312eb5dcd12f2f8420028547584b708907.zip fsf-binutils-gdb-4aebb6312eb5dcd12f2f8420028547584b708907.tar.gz fsf-binutils-gdb-4aebb6312eb5dcd12f2f8420028547584b708907.tar.bz2 |
Improved support for --icf=safe when used with -pie.
gold/
* x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
Return true even when building pie binaries.
(Target_x86_64::possible_function_pointer_reloc): Check opcode
for R_X86_64_PC32 relocations.
(Target_x86_64::local_reloc_may_be_function_pointer): Pass
extra arguments to local_reloc_may_be_function_pointer.
(Target_x86_64::global_reloc_may_be_function_pointer): Likewise.
* gc.h (gc_process_relocs): Add check for STT_FUNC.
* testsuite/Makefile.am (icf_safe_pie_test): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/icf_safe_pie_test.sh: New shell script.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions