diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-31 06:38:18 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-31 06:38:18 -0700 |
commit | 892002033dfa7b52813e6a98acde148ac28734d4 (patch) | |
tree | 27dd7146ee3636063d400103f64f81c441f0cd0c | |
parent | 1ae793e0c9ea1f251d5d527c171fcf8fc84c0932 (diff) | |
download | binutils-gdb-users/hjl/pr18900.tar.gz |
Fix pointer_refcountusers/hjl/pr18900
-rw-r--r-- | bfd/elf64-x86-64.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 373f701d9d4..96b509af65f 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -4396,7 +4396,9 @@ direct: && !bfd_link_pic (info) && h != NULL && h->dynindx != -1 - && (!h->non_got_ref || eh->pointer_refcount > 0) + && (!h->non_got_ref + || (eh->dyn_relocs != NULL + && eh->pointer_refcount > 0)) && ((h->def_dynamic && !h->def_regular) || h->root.type == bfd_link_hash_undefweak |