From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13848 invoked by alias); 24 Aug 2006 23:48:26 -0000 Received: (qmail 13799 invoked by uid 22791); 24 Aug 2006 23:48:25 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.197) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Aug 2006 23:48:23 +0000 Received: by nz-out-0102.google.com with SMTP id l8so454911nzf for ; Thu, 24 Aug 2006 16:48:21 -0700 (PDT) Received: by 10.65.126.4 with SMTP id d4mr2936095qbn; Thu, 24 Aug 2006 16:48:21 -0700 (PDT) Received: from ?192.168.1.51? ( [68.33.112.13]) by mx.gmail.com with ESMTP id d12sm312492qbc.2006.08.24.16.48.19; Thu, 24 Aug 2006 16:48:19 -0700 (PDT) Subject: GDB pie From: John Moser To: gdb@sourceware.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3KwM5k/71vmJXzJEgBxR" Date: Thu, 24 Aug 2006 23:48:00 -0000 Message-Id: <1156463298.7320.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.7.92 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00186.txt.bz2 --=-3KwM5k/71vmJXzJEgBxR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 830 It seems right now I can't get gdb to debug a program compiled with gcc as: gcc -fpic -fpie -ggdb pie.c -o pie Somewhere there were some patches floating around that allowed gdb to handle position independent executables; but I can't find them* and don't know if they're up to date. Anyone have any ideas on this? I know the patches are out there somewhere, it'd be nice if whoever wrote them worked into getting them into mainline, assuming they're still maintained. Using PIE binaries is a security feature that can be found in RedHat and Gentoo; it's recommended to build the entire system PIE by the PaX project as well. *Google: gdb "position independent executable" patch; gdb "position independent executable"; gdb position independent executable; gdb pie patch; gdb pie --=20 John Moser --=-3KwM5k/71vmJXzJEgBxR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQIVAwUARO46wQs1xW0HCTEFAQItGg/8CG+Aien/brl4/KLXt2WW/r3tgHfGG53M AaLqqR1ArSNAfWtM+I+9MYXYh3CKkg5ySoOg8CSAcnFZqYS/hcbRWOt+iYT2MiUu O2GSWlOBplRsUHYIeClDW8Geg4ptazVykPhCui4wY5ulMw0+al8zJWksoF8TKXMR 2W0r/RK+iFG8TRRX4bf6q0B8q1GgEl7FscdeCTbeNdmC5R2aKJZzZTtqPn4S1MyB uFQ5xagJXQlrGWZuSMQcERXLB0ip0W53PWE8KlfE38ZUOv5CeGEfuzNZb1A1hqHq UA9cGil5vtiTyJVLZMlCRCpahApFoRvaiHkYxMamUMQ1XAFmg3gwXuFOCH79YzhL Y8SCPmlpbYxha/SxdygG3OAOjY44i0br3UpPlysZARp8+0Dxh1sEz5Cgm88GIoOZ 1XP3OfUBUKLcaWqR/d5UYgLDNh+dxzBKL4I6uUbHMQoJzfP4xeWOAgW0HVTM3Gmo +UW/5uV78l4QUZLFBkS6/bUSImlT43cPXc96xDQJ7gbrJb0WqNIuOIDxJwJnKH6S a8NVkxaUjcQlISFk0EsAOxatqZrf4j7G6bln+W5prOQFex3mIaaGxNrDz/xx84Ro xRtn7YYxE9HZcVH0+LOAbbnyKnKMo+HXBblJDV3L1JPaQoBNSseb1gKUo1u8K/p+ MdJ44zlbYQE= =FJbj -----END PGP SIGNATURE----- --=-3KwM5k/71vmJXzJEgBxR--