From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1E023858420; Thu, 9 Dec 2021 17:47:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1E023858420 From: "alex_y_xu at yahoo dot ca" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28453] ld.so segfaults when relocating x86 libstdc++.so compiled with -fno-plt Date: Thu, 09 Dec 2021 17:47:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex_y_xu at yahoo dot ca X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 17:47:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28453 --- Comment #10 from alex_y_xu at yahoo dot ca --- Reproduction instructions from scratch: 0. Install gcc 11.2.0 (unsure if Gentoo patches have an effect) on x86_64. 1. Download and extract gcc 11.2.0 (without any patches). 2. export CFLAGS=3D'-O2 -fno-align-jumps -fno-align-functions -fno-align-lo= ops -fno-align-labels -fgcse-after-reload -floop-interchange -fpeel-loops -fpredictive-commoning -ftree-loop-vectorize -ftree-partial-pre -ftree-slp-vectorize -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -march=3Dnative -fno-p= lt -mtls-dialect=3Dgnu2 -pipe'; export CXXFLAGS=3D"$CFLAGS" LDFLAGS=3D'-Wl,--s= ort-common -Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now'; ./configure --disable-bootstrap --enable-lto && make all-target-libstdc++-v3 3. Examine file ./x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/libstdc++.so.6.0.29. I cannot attach the dependencies as it exceeds the file size limit, even af= ter excluding libc and compressing with xz -9e. --=20 You are receiving this mail because: You are on the CC list for the bug.=