https://sourceware.org/bugzilla/show_bug.cgi?id=22431
Bug ID: 22431 Summary: ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le Product: binutils Version: 2.29 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: mopsfelder at gmail dot com Target Milestone: --- Steps to reproduce: - Make sure cross toolchain is installed: sudo dnf install gcc-powerpc64-linux-gnu binutils-powerpc64-linux-gnu - Clone Linux kernel mainline tree and build it with a specific .config: git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd linux curl http://kisskb.ellerman.id.au/kisskb/buildresult/13052890/config/ -o .config yes "" | make CROSS_COMPILE=powerpc64-linux-gnu- oldconfig make -j$(nproc) ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- V=1 Actual results: ld segfaults during kernel build: + powerpc64-linux-gnu-ld -EB -m elf64ppc -pie --orphan-handling=warn --build-id -X -o .tmp_vmlinux1 -T ./arch/powerpc/kernel/vmlinux.lds --whole-archive built-in.o --no-whole-archive --start-group lib/lib.a --end-group scripts/link-vmlinux.sh: line 94: 50108 Segmentation fault (core dumped) ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects} $ coredumpctl info 50108 PID: 50108 (powerpc64-linux) UID: 1000 (muriloo) GID: 1000 (muriloo) Signal: 11 (SEGV) Timestamp: Mon 2017-11-13 12:58:39 UTC (36s ago) Command Line: powerpc64-linux-gnu-ld -EB -m elf64ppc -pie --orphan-handling=warn --build-id -X -o .tmp_vmlinux1 -T ./arch/powerpc/kernel/vmlinux.lds --whole-archive built-in.o --no-whole-archive --start-group lib/lib.a --end-group Executable: /usr/bin/powerpc64-linux-gnu-ld Control Group: /user.slice/user-1000.slice/session-45.scope Unit: session-45.scope Slice: user-1000.slice Session: 45 Owner UID: 1000 (muriloo) Boot ID: d8210aa3d4294fff8d0c0aa029c54003 Machine ID: cce67ab87a11416cbcc2d3df27174b61 Hostname: localhost.localdomain Storage: /var/lib/systemd/coredump/core.powerpc64-linux.1000.d8210aa3d4294fff8d0c0aa029c54003.50108.1510577919000000.lz4 Message: Process 50108 (powerpc64-linux) of user 1000 dumped core. Stack trace of thread 50108: #0 0x00000000100bac6c ppc_size_one_stub (powerpc64-linux-gnu-ld) #1 0x000000001008c164 bfd_hash_traverse (powerpc64-linux-gnu-ld) #2 0x00000000100bff98 ppc64_elf_size_stubs (powerpc64-linux-gnu-ld) #3 0x0000000010040e38 gldelf64ppc_after_allocation (powerpc64-linux-gnu-ld) #4 0x00000000100341cc ldemul_after_allocation (powerpc64-linux-gnu-ld) #5 0x0000000010026f9c lang_process (powerpc64-linux-gnu-ld) #6 0x000000001000466c main (powerpc64-linux-gnu-ld) #7 0x00007fffb2a02f20 generic_start_main (libc.so.6) #8 0x00007fffb2a03118 __libc_start_main (libc.so.6) I tested with the default binutils from Fedora 26: binutils-2.27-28.fc26.ppc64le I also tested with binutils-2.29 from Fedora rawhide (built for Fedora 26): https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/c/cross-binutils-2.29.1-1.fc28.src.rpm $ rpm -qa | grep binutils | sort binutils-2.27-28.fc26.ppc64le binutils-powerpc64-linux-gnu-2.29.1-1.fc26.ppc64le cross-binutils-common-2.29.1-1.fc26.noarch -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils