View | Details | Raw Unified | Return to bug 16177 | Differences between
and this patch

Collapse All | Expand All

(-)a/bfd/elf32-arm.c (-4 / +8 lines)
Lines 14112-14122 elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info, Link Here
14112
  s = bfd_get_linker_section (dynobj, ".dynbss");
14112
  s = bfd_get_linker_section (dynobj, ".dynbss");
14113
  BFD_ASSERT (s != NULL);
14113
  BFD_ASSERT (s != NULL);
14114
14114
14115
  /* We must generate a R_ARM_COPY reloc to tell the dynamic linker to
14115
  /* If allowed, we must generate a R_ARM_COPY reloc to tell the dynamic
14116
     copy the initial value out of the dynamic object and into the
14116
     linker to copy the initial value out of the dynamic object and into
14117
     runtime process image.  We need to remember the offset into the
14117
     the runtime process image.  We need to remember the offset into the
14118
     .rel(a).bss section we are going to use.  */
14118
     .rel(a).bss section we are going to use.  */
14119
  if ((h->root.u.def.section->flags & SEC_ALLOC) != 0 && h->size != 0)
14119
  if (info->nocopyreloc == 0
14120
      && (h->root.u.def.section->flags & SEC_ALLOC) != 0
14121
      /* PR 16177: A copy is only needed if the input section is readonly.  */
14122
      && (h->root.u.def.section->flags & SEC_READONLY) == 0
14123
      && h->size != 0)
14120
    {
14124
    {
14121
      asection *srel;
14125
      asection *srel;
14122
14126

Return to bug 16177