Disable R_X86_64_PLT32 generation as branch marker on Solaris/x86
[deliverable/binutils-gdb.git] / gas / config / tc-i386.c
index 4816b54f93c7eb8d509f16bc22ca0d4c9c46529f..5eb6c4c2692d4aafdd495db3294ef065fecf43a5 100644 (file)
@@ -7787,6 +7787,12 @@ need_plt32_p (symbolS *s)
   if (!IS_ELF)
     return FALSE;
 
+#ifdef TE_SOLARIS
+  /* Don't emit PLT32 relocation on Solaris: neither native linker nor
+     krtld support it.  */
+  return FALSE;
+#endif
+
   /* Since there is no need to prepare for PLT branch on x86-64, we
      can generate R_X86_64_PLT32, instead of R_X86_64_PC32, which can
      be used as a marker for 32-bit PC-relative branches.  */
This page took 0.027937 seconds and 4 git commands to generate.