i386: Support .code64 directive only with 64-bit bfd
[deliverable/binutils-gdb.git] / gold / gc.h
index 45f8d2af9c3af80453c0c16012b76b5061bafe79..327efc25bf590d73b8ac9580c26647404fb29ad5 100644 (file)
--- a/gold/gc.h
+++ b/gold/gc.h
@@ -295,6 +295,7 @@ gc_process_relocs(
          // When doing safe folding, check to see if this relocation is that
          // of a function pointer being taken.
          if (gsym->source() == Symbol::FROM_OBJECT
+              && gsym->type() == elfcpp::STT_FUNC
               && check_section_for_function_pointers
               && dst_obj != NULL
               && (!is_ordinary
This page took 0.023596 seconds and 4 git commands to generate.