Handle relocation against protected function for -Bsymbolic
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index f2f803a54b80d2f093b40be4c4fd6f55a4c88e56..cc5ee42b81cfb91eae0139c47df8937958675672 100644 (file)
@@ -3464,8 +3464,9 @@ elf_x86_64_relocate_section (bfd *output_bfd,
          /* Check to make sure it isn't a protected function symbol
             for shared library since it may not be local when used
             as function address.  */
-         if (info->shared
+         if (!info->executable
              && h
+             && !SYMBOLIC_BIND (info, h)
              && h->def_regular
              && h->type == STT_FUNC
              && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
This page took 0.024487 seconds and 4 git commands to generate.