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.