From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E27B33875DC8; Wed, 12 Jun 2024 11:11:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E27B33875DC8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1718190677; bh=FOH9F15tTPk/pTataVAcLpQkQSOn+Gpvo/mqqEUxrzk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SE8IhJjaVahn0r4xGRQ1u5g2ZK0/Fg33MVi3gbiHJ3bPH56Rbu11blWHLuFPcBtIT qRhE8Q0hDtxfxWfk8SBUjh2jDd9/uw4CWk8hqoxB3EDgcxNeKN+aYb2hO0sM+QsUZv wrPOEMwDgl75vv6u0Cjl01mEio2+V3iMcYLOdFIA= From: "marian.buschsieweke at posteo dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/31851] GDB ignores absolute function symbols Date: Wed, 12 Jun 2024 11:11:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marian.buschsieweke at posteo dot net X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31851 --- Comment #5 from Marian Buschsieweke --- This is only anecdotally relevant to the bug, but may be of interest to some reader anyway. I figured out why the functions became absolute symbols in t= he first place. Before, I claimed: > There is no special handling of functions that end up as absolute symbols= in either the C code or the linker script. That turns out to be incorrect, in fact, the linker script explicitly placed functions at absolute addresses. I overlooked this because this was not par= t of the linker script of the application I looked at, but done by an external linker script [1] of the vendor SDK I wasn't aware that it was included. I guess for providing an ABI to a pre-compiled binary blob that needs to be loaded at a given address, the use of absolute addresses does make sense :'( [1]: https://github.com/espressif/esp-idf/blob/24c20d188e24c815e28351cddb838c01e= 7dfb241/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld --=20 You are receiving this mail because: You are on the CC list for the bug.=