From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 81C9638582A1; Tue, 5 Jul 2022 07:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81C9638582A1 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29318] [gdb] FAIL: gdb.base/gcore-relro-pie.exp: x/i $pc Date: Tue, 05 Jul 2022 07:37:21 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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: Tue, 05 Jul 2022 07:37:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29318 --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > (In reply to Tom de Vries from comment #0) > > That seems to be caused by this alignment mismatch introduced by strip: > > ... > > $ readelf -l -W gcore-relro-pie | grep GNU_ST > > GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 > > 0x000000 RW 0x10 > > $ readelf -l -W gcore-relro-pie.stripped | grep GNU_ST > > GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 > > 0x000000 RW 0x8 > > ... > >=20 > > I have not been able to reproduce this outside the specific setup, so t= he > > strip problem may be specific to the package. > >=20 >=20 > I was able to reproduce this with binutils trunk from today, using > --disable-separate-code, which has an effect here in bfd/elf64-x86-64.c: > ... > #if DEFAULT_LD_Z_SEPARATE_CODE > # define ELF_MAXPAGESIZE 0x1000 > #else > # define ELF_MAXPAGESIZE 0x200000 > #endif > ... > which causes elf_is_p_align_valid to behave differently, which is called > from copy_elf_program_header. Filed binutils counterpart, PR29319. --=20 You are receiving this mail because: You are on the CC list for the bug.=