Lines 15398-15404
elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info,
Link Here
|
15398 |
linker to copy the initial value out of the dynamic object and into |
15398 |
linker to copy the initial value out of the dynamic object and into |
15399 |
the runtime process image. We need to remember the offset into the |
15399 |
the runtime process image. We need to remember the offset into the |
15400 |
.rel(a).bss section we are going to use. */ |
15400 |
.rel(a).bss section we are going to use. */ |
15401 |
if ((h->root.u.def.section->flags & SEC_READONLY) != 0) |
15401 |
if (info->nocopyreloc == 0 |
|
|
15402 |
&& (h->root.u.def.section->flags & SEC_ALLOC) != 0 |
15403 |
/* PR 16177: A copy is only needed if the input section is readonly. */ |
15404 |
&& (h->root.u.def.section->flags & SEC_READONLY) != 0 |
15405 |
&& h->size != 0) |
15402 |
{ |
15406 |
{ |
15403 |
s = globals->root.sdynrelro; |
15407 |
s = globals->root.sdynrelro; |
15404 |
srel = globals->root.sreldynrelro; |
15408 |
srel = globals->root.sreldynrelro; |
Lines 15410-15415
elf32_arm_adjust_dynamic_symbol (struct bfd_link_info * info,
Link Here
|
15410 |
} |
15414 |
} |
15411 |
if (info->nocopyreloc == 0 |
15415 |
if (info->nocopyreloc == 0 |
15412 |
&& (h->root.u.def.section->flags & SEC_ALLOC) != 0 |
15416 |
&& (h->root.u.def.section->flags & SEC_ALLOC) != 0 |
|
|
15417 |
/* PR 16177: A copy is only needed if the input section is readonly. */ |
15418 |
&& (h->root.u.def.section->flags & SEC_READONLY) != 0 |
15413 |
&& h->size != 0) |
15419 |
&& h->size != 0) |
15414 |
{ |
15420 |
{ |
15415 |
elf32_arm_allocate_dynrelocs (info, srel, 1); |
15421 |
elf32_arm_allocate_dynrelocs (info, srel, 1); |