From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57BB73857831; Thu, 17 Feb 2022 16:26:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57BB73857831 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug symtab/28900] GDB crash on loading symbols form openbios binary Date: Thu, 17 Feb 2022 16:26:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark 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: 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: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2022 16:26:46 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28900 --- Comment #3 from Simon Marchi --- PowerPC64 defines _GLOBAL like this: #define _GLOBAL(name) \ .align 2 ; \ .type name,@function; \ .globl name; \ name: I guess this generates an ELF function/text symbol, which is enough to be a= ble to put a breakpoint on it or print its address. It's only PowerPC32 that d= oes: #define _GLOBAL(n) \ .stabs __stringify(n:F-1),N_FUN,0,0,n;\ .globl n; \ n: Is there a reason that PowerPC32 can't do the same as PowerPC64, let the compiler generate an ELF function/text symbol for the label? --=20 You are receiving this mail because: You are on the CC list for the bug.=