From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE670384640F; Thu, 21 Jan 2021 23:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE670384640F From: "romain.naour at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/98784] [gcc 8.4/9.3/10] sparcv8 regression Date: Thu, 21 Jan 2021 23:26:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: romain.naour at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2021 23:26:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98784 --- Comment #2 from Romain Naour --- Hello, The kernel and userland are built with the same toolchain, but this is the userpace program (such busybox) that crash. Busybox is built with the following flags: Toolchain wrapper executing: =20=20=20 'qemu_sparc_ss10_defconfig/host/bin/sparc-buildroot-linux-uclibc-gcc.br_rea= l' '--sysroot' 'qemu_sparc_ss10_defconfig/host/sparc-buildroot-linux-uclibc/sysroot' '-Wp,-MD,libbb/.vfork_daemon_rexec.o.d' '-std=3Dgnu99' '-Iinclude' '-Ilibbb' '-include' 'include/autoconf.h' '-D_GNU_SOURCE' '-DNDEBUG' '-D_LARGEFILE_SOURCE' '-D_LARGEFILE64_SOURCE' '-D_FILE_OFFSET_BITS=3D64' '-DBB_VER=3D"1.33.0"' '-D_LARGEFILE_SOURCE' '-D_LARGEFILE64_SOURCE' '-D_FILE_OFFSET_BITS=3D64' '-Os' '-Wall' '-Wshadow' '-Wwrite-strings' '-Wundef' '-Wstrict-prototypes' '-Wunused' '-Wunused-parameter' '-Wunused-function' '-Wunused-value' '-Wmissing-prototypes' '-Wmissing-declarations' '-Wno-format-security' '-Wdeclaration-after-statement' '-Wold-style-definition' '-finline-limit=3D0' '-fno-builtin-strlen' '-fomit-frame-pointer' '-ffunction-sections' '-fdata-sections' '-fno-guess-branch-probability' '-funsigned-char' '-static-libgcc' '-falign-functions=3D1' '-falign-jumps=3D1' '-falign-labels=3D1' '-falign-loops=3D1' '-fno-unwind-tables' '-fno-asynchronous-unwind-tables' '-fno-builtin-printf' '-Os' '-DKBUILD_BASENAME=3D"vfork_daemon_rexec"' '-DKBUILD_MODNAME=3D"vfork_daemon_rexec"' '-c' '-o' 'libbb/vfork_daemon_rexec.o' 'libbb/vfork_daemon_rexec.c' So -fPIE is not used here but there is a side effect when the patch is appl= ied. Note: This is an initial report, I don't have any clue about the real issue. Best regards, Romain=