From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C3E43844035; Thu, 30 Jul 2020 12:17:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C3E43844035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596111442; bh=xyhqFT9wvOyVErBftBBpYB59zL43K8cPcfYXKSTwoQA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T9VNVCYBATZ3VHmMXMEpIa6vmTLc+Xo8b2jd8d8R7fv2/K04WcvvgWvR40IqFzCkA 1V1+W2n0q7T0JlRtiONDE53E7eHoLsLyPrEhwFx8jl9e4Dhha4vtQxXk3icP+yfLmN p/zKsxVabbSC7uw/aZamf2P0CiZSM9+zmKC5IERU= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/96385] GCC generates separate debug info with undefined symbols without relocations Date: Thu, 30 Jul 2020 12:17:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: lto, wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW 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, 30 Jul 2020 12:17:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96385 --- Comment #5 from H.J. Lu --- Please get users/hjl/pr26314/test branch at https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/pr26314/test and build binutils with GCC 10: CC=3D"/usr/gcc-10.1.1-x32/bin/gcc -flto -ffat-lto-objects -Wl,--as-needed -fcf-protection" CXX=3D"/usr/gcc-10.1.1-x32/bin/g++ -flto -ffat-lto-objects -Wl,--as-needed -fcf-protection" /export/gnu/import/git/gitlab/x86-binutils/configure \ --enable-shared \ \ --enable-plugins --disable-gdb --disable-gdbserver --disable-libdecnumber --disable-readline --disable-sim --with-sysroot=3D/ --with-system-zlib \ --prefix=3D/usr/local \ --with-local-prefix=3D/usr/local I got [hjl@gnu-cfl-2 build-x86_64-linux]$ nm -D binutils/.libs/ar | grep lrealpath 0000000000000000 A lrealpath [hjl@gnu-cfl-2 build-x86_64-linux]$=