summaryrefslogtreecommitdiff
path: root/bfd/elf32-s390.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-11-19 11:10:06 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-11-19 11:10:06 +0100
commitd47b13e0e2286ef9e9444292bc5631f43cf226da (patch)
tree8eb81d10c2575320c8681a1475efe43ab9666187 /bfd/elf32-s390.c
parent56a1b672f4b97b10b093f02540dff1c855a69855 (diff)
[S/390] Add null ptr check + port GOTOFF handling from 32 bit over to 64 bit
bfd/ChangeLog: 2015-11-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com> PR ld/19263 * elf32-s390.c (elf_s390_gc_sweep_hook): Add null ptr check. * elf64-s390.c (elf_s390_check_relocs): Port the GOTOFF handling over from the 32 bit code. (elf_s390_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf32-s390.c')
-rw-r--r--bfd/elf32-s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 3fad6b3ccd..8a83005120 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -1531,7 +1531,7 @@ elf_s390_gc_sweep_hook (bfd *abfd,
case R_390_GOTOFF16:
case R_390_GOTOFF32:
- if (s390_is_ifunc_symbol_p (h) && h->def_regular)
+ if (h != NULL && s390_is_ifunc_symbol_p (h) && h->def_regular)
{
h->plt.refcount--;
break;