* i386.cc (Target_i386::can_check_for_function_pointers): New function.
authorSriraman Tallam <tmsriram@google.com>
Thu, 4 Mar 2010 01:33:22 +0000 (01:33 +0000)
committerSriraman Tallam <tmsriram@google.com>
Thu, 4 Mar 2010 01:33:22 +0000 (01:33 +0000)
commit0897ed3bdb8ae45b2142057223c1179036154d2d
tree0db3d5c377a366ba4689b1422367a0f6d1f09619
parent390a8acaa3838e084169c5dd159075cfbc178fbc
* i386.cc (Target_i386::can_check_for_function_pointers): New function.
(Scan::possible_function_pointer_reloc): New function.
(Scan::local_reloc_may_be_function_pointer): Change to call
possible_function_pointer_reloc.
(Scan::global_reloc_may_be_function_pointer): Ditto.
* icf.h (Icf::check_section_for_function_pointers): Change to reject
relocations in ".data.rel.ro._ZTV" section.
* testsuite/icf_safe_so_test.sh: Change to pass i386.
* testsuite/icf_safe_so_test.cc: Ditto.
* testsuite/icf_safe_test.cc: Ditto.
* testsuite/icf_safe_test.sh: Ditto.
gold/ChangeLog
gold/i386.cc
gold/icf.h
gold/testsuite/icf_safe_so_test.cc
gold/testsuite/icf_safe_so_test.sh
gold/testsuite/icf_safe_test.cc
gold/testsuite/icf_safe_test.sh