From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 917E43857C6E; Fri, 10 Dec 2021 16:02:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 917E43857C6E 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: Fri, 10 Dec 2021 16:02:21 +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: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex_y_xu at yahoo dot ca X-Bugzilla-Status: NEW 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: Fri, 10 Dec 2021 16:02:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28453 --- Comment #13 from alex_y_xu at yahoo dot ca --- Although I have not tested it, the linked patch does not appear to resolve = this issue. While I think the patch is a good idea, this issue is not actually a= bout invoking ld.so directly on the library. All programs linked against this library also segfault on execution. $ docker run -it --rm fedora [ ... ] # dnf install g++ glibc-devel.i686 libstdc++-devel.i686 [ ... ] # curl -o libstdc++.so.6 https://sourceware.org/bugzilla/attachment.cgi?id=3D13721 [ ... ] # echo 'int main() {}' | g++ -m32 -x c++ - # ./a.out; echo $? 0 # LD_LIBRARY_PATH=3D. ./a.out; echo $? Segmentation fault (core dumped) 139 --=20 You are receiving this mail because: You are on the CC list for the bug.=