From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D482A3844750; Sat, 4 May 2024 08:35:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D482A3844750 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714811753; bh=WcT+JqIftYbFrqS/dzecAIe3havRUKFdzdT7ti2Zh+w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PKK7/WR6mB4NyoZHMurTfA70IOu275vuk9KLh7fwqLtUseDWQP1xIO+qVLqYYpR6E ZrTx31VCDJ3UGy0cyIwQXOKQzmBaDSQx1YavELf8huocA93EJ4e8ksYYRqcTDDzZi1 UTL8Bxr/jHHtCstS+b/i9q4q1euiz3tmSdsS32Yk= From: "jcmvbkbc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/114941] libbacktrace build is broken for FDPIC uclibc targets by r14-5173-g2b64e4a54042 Date: Sat, 04 May 2024 08:35:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jcmvbkbc at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114941 --- Comment #3 from jcmvbkbc at gcc dot gnu.org --- (In reply to Ian Lance Taylor from comment #2) > What is the correct way to get the address at which the shared library was > loaded when using FDPIC? There's no single base address in case of FDPIC, the macro __RELOC_POINTER(= ptr, loadaddr) can be used with the elf32_fdpic_loadaddr::dlpi_addr as the last argument to translate an address according to the load map. An example is available in the libgcc/unwind-dw2-fde-dip.c=