From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB1283858416; Mon, 17 Jan 2022 13:41:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB1283858416 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/28780] --disable-default-pie doesn't work on static programs Date: Mon, 17 Jan 2022 13:41:12 +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: short_desc 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: Mon, 17 Jan 2022 13:41:12 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28780 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|--disable-default-pie |--disable-default-pie |doesn't work |doesn't work on static | |programs --- Comment #5 from H.J. Lu --- (In reply to Siddhesh Poyarekar from comment #3) > (In reply to H.J. Lu from comment #0) > > When glibc is configured with --disable-default-pie, glibc programs > > and tests are still built with PIE. >=20 > I don't see this: >=20 > $ file iconv/iconvconfig > iconv/iconvconfig: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), > dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, > BuildID[sha1]=3Daa0e3a52679c883c41e8919bf3c83d2042832abb, for GNU/Linux 3= .2.0, > with debug_info, not stripped Only static programs are affected: [hjl@gnu-tgl-2 build-x86_64-linux]$ file setjmp/tst-setjmp setjmp/tst-setjmp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /export/build/gnu/tools-build/glibc-static/build-x86_64-linux/elf/ld.so, BuildID[sha1]=3D6ab8089abe7c83d9915248c83475e4c823e1b630, for GNU/Linux 3.2= .0, with debug_info, not stripped [hjl@gnu-tgl-2 build-x86_64-linux]$ file setjmp/tst-setjmp-static setjmp/tst-setjmp-static: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), static-pie linked, BuildID[sha1]=3D8a318ee34736192fe96c1f3b59b5aa4cf4395317, for GNU/Linux 3.2= .0, with debug_info, not stripped [hjl@gnu-tgl-2 build-x86_64-linux]$ file elf/sln elf/sln: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), static-pie linked, BuildID[sha1]=3D8120135c9ed1d318cf3b33f4dd0bc3f6d0aa58d4= , for GNU/Linux 3.2.0, with debug_info, not stripped [hjl@gnu-tgl-2 build-x86_64-linux]$ --=20 You are receiving this mail because: You are on the CC list for the bug.=