Revert the last change
* elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last change. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
This commit is contained in:
parent
499de2f6ba
commit
c3ce498cbd
3 changed files with 10 additions and 14 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
|
||||
change.
|
||||
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
|
||||
|
||||
2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/16428
|
||||
|
|
|
@ -2368,13 +2368,8 @@ elf_i386_allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
|
|||
|
||||
for (pp = &eh->dyn_relocs; (p = *pp) != NULL; )
|
||||
{
|
||||
/* Don't update reloc count if there are any non
|
||||
pc-relative relocs. */
|
||||
if (!h->pointer_equality_needed)
|
||||
{
|
||||
p->count -= p->pc_count;
|
||||
p->pc_count = 0;
|
||||
}
|
||||
p->count -= p->pc_count;
|
||||
p->pc_count = 0;
|
||||
if (p->count == 0)
|
||||
*pp = p->next;
|
||||
else
|
||||
|
|
|
@ -2463,13 +2463,8 @@ elf_x86_64_allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
|
|||
|
||||
for (pp = &eh->dyn_relocs; (p = *pp) != NULL; )
|
||||
{
|
||||
/* Don't update reloc count if there are any non
|
||||
pc-relative relocs. */
|
||||
if (!h->pointer_equality_needed)
|
||||
{
|
||||
p->count -= p->pc_count;
|
||||
p->pc_count = 0;
|
||||
}
|
||||
p->count -= p->pc_count;
|
||||
p->pc_count = 0;
|
||||
if (p->count == 0)
|
||||
*pp = p->next;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue