From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24617 invoked by alias); 13 Feb 2010 21:55:32 -0000 Received: (qmail 24609 invoked by uid 22791); 13 Feb 2010 21:55:32 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 13 Feb 2010 21:55:28 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id o1DLt22u003853; Sat, 13 Feb 2010 22:55:02 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id o1DLt0Y8021234; Sat, 13 Feb 2010 22:55:00 +0100 (CET) Date: Sat, 13 Feb 2010 21:55:00 -0000 Message-Id: <201002132155.o1DLt0Y8021234@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <20100213201206.GA17808@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Sat, 13 Feb 2010 21:12:06 +0100) Subject: Re: [patch] Sanity check PIE displacement #2 References: <20100213201206.GA17808@host0.dyn.jankratochvil.net> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00343.txt.bz2 > Date: Sat, 13 Feb 2010 21:12:06 +0100 > From: Jan Kratochvil > > + /* Check of the alignment against max (p_align) of PT_LOAD segments > + cannot be used here as in LM_ADDR_CHECK for PIC libraries as at > + least amd64 PIE executables have 2MB p_align while Linux kernel > + loads them with arbitrary 4KB displacement. As in this case there > + is no LM_ADDR_FROM_LINK_MAP to verify the possible offset GDB has > + to depend just on MINPAGESIZE. */ To me this sounds as if you've found a bug in the Linux kernel and/or ld.so. I'd argue the warning is totally appropriate.