From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 230263858D35; Sat, 15 Jan 2022 19:39:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 230263858D35 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/28780] --disable-default-pie doesn't work Date: Sat, 15 Jan 2022 19:39:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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: Sat, 15 Jan 2022 19:39:48 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28780 --- Comment #2 from H.J. Lu --- (In reply to H.J. Lu from comment #1) > One problem is >=20 > commit 91e92272caefad4b6156572fc41671dcbd93afe5 > Author: Fangrui Song > Date: Fri Sep 24 09:36:32 2021 -0700 >=20 > i386: Port elf_machine_{load_address,dynamic} from x86-64 >=20=20=20=20=20 > This drops reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time > address of _DYNAMIC. >=20=20=20=20=20 > The code sequence length does not change. >=20=20=20=20=20 > Reviewed-by: H.J. Lu >=20 > and >=20 > commit b37b75d269883a2c553bb7019a813094eb4e2dd1 > Author: Fangrui Song > Date: Tue Aug 17 10:45:57 2021 -0700 >=20 > x86_64: Simplify elf_machine_{load_address,dynamic} >=20=20=20=20=20 > and drop reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time > address of _DYNAMIC. &__ehdr_start is a better way to get the load > address. >=20=20=20=20=20 > Reviewed-by: H.J. Lu >=20 > replaced _GLOBAL_OFFSET_TABLE_ reference with _DYNAMIC. But linker won't > define _DYNAMIC for non-PIE static. "gcc -static" leads to undefined > _DYNAMIC error. Ignore this. The problem is elsewhere. --=20 You are receiving this mail because: You are on the CC list for the bug.=