View | Details | Raw Unified | Return to bug 27169
Collapse All | Expand All

(-)a/gas/config/tc-i386.c (-3 / +3 lines)
Lines 8625-8631 need_plt32_p (symbolS *s) Link Here
8625
  /* Since there is no need to prepare for PLT branch on x86-64, we
8625
  /* Since there is no need to prepare for PLT branch on x86-64, we
8626
     can generate R_X86_64_PLT32, instead of R_X86_64_PC32, which can
8626
     can generate R_X86_64_PLT32, instead of R_X86_64_PC32, which can
8627
     be used as a marker for 32-bit PC-relative branches.  */
8627
     be used as a marker for 32-bit PC-relative branches.  */
8628
  if (!object_64bit)
8628
  if (0 && !object_64bit)
8629
    return FALSE;
8629
    return FALSE;
8630
8630
8631
  /* Weak or undefined symbol need PLT32 relocation.  */
8631
  /* Weak or undefined symbol need PLT32 relocation.  */
Lines 8728-8734 output_jump (void) Link Here
8728
  if (size == 4
8728
  if (size == 4
8729
      && jump_reloc == NO_RELOC
8729
      && jump_reloc == NO_RELOC
8730
      && need_plt32_p (i.op[0].disps->X_add_symbol))
8730
      && need_plt32_p (i.op[0].disps->X_add_symbol))
8731
    jump_reloc = BFD_RELOC_X86_64_PLT32;
8731
    jump_reloc = object_64bit ? BFD_RELOC_X86_64_PLT32 : BFD_RELOC_386_PLT32;
8732
#endif
8732
#endif
8733
8733
8734
  jump_reloc = reloc (size, 1, 1, jump_reloc);
8734
  jump_reloc = reloc (size, 1, 1, jump_reloc);
Lines 12087-12093 md_estimate_size_before_relax (fragS *fragP, segT segment) Link Here
12087
	reloc_type = BFD_RELOC_16_PCREL;
12087
	reloc_type = BFD_RELOC_16_PCREL;
12088
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
12088
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
12089
      else if (need_plt32_p (fragP->fr_symbol))
12089
      else if (need_plt32_p (fragP->fr_symbol))
12090
	reloc_type = BFD_RELOC_X86_64_PLT32;
12090
	reloc_type = object_64bit ? BFD_RELOC_X86_64_PLT32 : BFD_RELOC_386_PLT32;
12091
#endif
12091
#endif
12092
      else
12092
      else
12093
	reloc_type = BFD_RELOC_32_PCREL;
12093
	reloc_type = BFD_RELOC_32_PCREL;

Return to bug 27169