From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E1A2385841A; Thu, 3 Feb 2022 20:49:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E1A2385841A From: "dave.anglin at bell dot net" To: glibc-bugs@sourceware.org Subject: [Bug libc/28857] FAIL: elf/tst-audit24a Date: Thu, 03 Feb 2022 20:49:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net 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: 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, 03 Feb 2022 20:49:35 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28857 --- Comment #2 from dave.anglin at bell dot net --- Is it DL_FIXUP_ADDR_VALUE that's problematic?=C2=A0 Maybe it should be defi= ned to _dl_lookup_address()? On 32-bit hppa, a pointer to a function descriptor has the plabel bit set (= bit 30).=C2=A0 This must be cleared to get the actual address of the descriptor ((unsigned int)addr & ~2).=C2=A0 I= f the descriptor has been bound, the first word of the descriptor is the physical address of the function.= =C2=A0 If it hasn't been bound, the first word of the descriptor points to a trampoline in the PLT.=C2=A0 It will fix= up the descriptor on the first call to the function. _dl_lookup_address() in dl-fptr.c resolves the descriptor and returns the actual function address. If that's not required, maybe DL_FIXUP_ADDR_VALUE(addr) should be: #define DL_FIXUP_ADDR_VALUE(addr) (*(struct fdesc *) ((unsigned int)addr & = ~2)) DL_FIXUP_BINDNOW_RELOC looks questionable as well. --=20 You are receiving this mail because: You are on the CC list for the bug.=