]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf64-s390.c
S/390: Fix testsuite segfault added with recent pgste patch.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 26 Jun 2017 09:01:58 +0000 (11:01 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 26 Jun 2017 09:01:58 +0000 (11:01 +0200)
commit93ec5e23766a9f75aa4950748cf73964028a8d1b
treeba6f4eb23fceddf57b6018ea37d8c2e4e538da28
parent49fa50ef9c59aa6d03bc2e33a25b2d832a9e692b
S/390: Fix testsuite segfault added with recent pgste patch.

The recent pgste patch caused several testcases to fail with a
segfault.  Fixed with this patch by adding NULL pointer checks.

regression-tested on s390x.

bfd/ChangeLog:

2017-06-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* elf64-s390.c (elf_s390_additional_program_headers): Add NULL
pointer checks.
(elf_s390_modify_segment_map): Likewise.
(bfd_elf_s390_set_options): Lisewise.
bfd/ChangeLog
bfd/elf64-s390.c