[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/26918] New: s390x: ld segfaults when htab->elf.sgot is NULL
From: |
iii at linux dot ibm.com |
Subject: |
[Bug ld/26918] New: s390x: ld segfaults when htab->elf.sgot is NULL |
Date: |
Wed, 18 Nov 2020 20:26:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26918
Bug ID: 26918
Summary: s390x: ld segfaults when htab->elf.sgot is NULL
Product: binutils
Version: 2.32
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: iii at linux dot ibm.com
Target Milestone: ---
The following (arguably pointless) code crashes ld on s390x:
$ cat test.c
int add (int a, int b) { return a + b; }
$ cat test.lds
SECTIONS { /DISCARD/ : { *(*) } }
$ gcc -nostartfiles -Wl,--script=test.lds test.c
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.
Thread 3.1 "ld" received signal SIGSEGV, Segmentation fault.
3682 elf_section_data (htab->elf.sgot->output_section)
#0 0x000003fffbdcee8a in elf_s390_finish_dynamic_sections
(output_bfd=0x2aa000cfb80, info=0x2aa000ca0b8 <link_info>) at elf64-s390.c:3682
#1 0x000003fffbdfcb80 in bfd_elf_final_link (abfd=<optimized out>,
info=<optimized out>) at elflink.c:12679
#2 0x000002aa00024bb4 in ldwrite () at ldwrite.c:581
#3 0x000002aa0000ba68 in main (argc=<optimized out>, argv=<optimized out>) at
./ldmain.c:456
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/26918] New: s390x: ld segfaults when htab->elf.sgot is NULL,
iii at linux dot ibm.com <=
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, iii at linux dot ibm.com, 2020/11/18
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, nickc at redhat dot com, 2020/11/19
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, nickc at redhat dot com, 2020/11/19
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, iii at linux dot ibm.com, 2020/11/19
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, cvs-commit at gcc dot gnu.org, 2020/11/19
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, nickc at redhat dot com, 2020/11/19
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, hjl.tools at gmail dot com, 2020/11/20
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, hjl.tools at gmail dot com, 2020/11/20
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, cvs-commit at gcc dot gnu.org, 2020/11/23
- [Bug ld/26918] s390x: ld segfaults when htab->elf.sgot is NULL, hjl.tools at gmail dot com, 2020/11/23