From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B64503858C3A; Sat, 13 Apr 2024 12:10:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B64503858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713010258; bh=r+euO0s7zqN43BgFQVBUfxk9CP+A3mGrskAK//h1fjw=; h=From:To:Subject:Date:From; b=FnMTgHj9UZlqYNnXiC/XrAIRSb0ECMl6LAQx8oQ0blBSMpAMWCeNG3/la9K6cZEp0 jYdDyerk4XEk+czTthc8E2VUCj8t7S5kC3p70wxmoTjC99ZvAF4zA6GpkfxgcWdTB2 wpMO+W2WQzbUbOMw8EnykQLvpHgrb2uKV8owOmYM= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31640] New: POWER10 ld.so crashes in elf_machine_load_address with GCC 14 Date: Sat, 13 Apr 2024 12:10:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31640 Bug ID: 31640 Summary: POWER10 ld.so crashes in elf_machine_load_address with GCC 14 Product: glibc Version: 2.40 Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: fweimer at redhat dot com Reporter: fweimer at redhat dot com CC: bergner at linux dot ibm.com Target Milestone: --- Target: powerpc64le-linux-gnu When built with GCC 14, ld.so crashes in elf_machine_load_address because t= he current implementation assumes that r2 still has the kernel-provided value: static inline Elf64_Addr elf_machine_load_address (void) { Elf64_Addr ret; /* The first entry in .got (and thus the first entry in .toc) is the link-time TOC_base, ie. r2. So the difference between that and the current r2 set by the kernel is how far the shared lib has moved. */ asm ( " ld %0,-32768(2)\n" " subf %0,%0,2\n" : "=3Dr" (ret)); return ret; } I don't think that's necessarily true in PCREL mode, so this is a glibc bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=