From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84381 invoked by alias); 28 Dec 2017 21:27:48 -0000 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 Received: (qmail 84367 invoked by uid 89); 28 Dec 2017 21:27:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_FAIL,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=1988, mer, 2029, HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (141.255.128.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Dec 2017 21:27:45 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5C8EA10674; Thu, 28 Dec 2017 22:27:42 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3T7ns6znEkP5; Thu, 28 Dec 2017 22:27:41 +0100 (CET) Received: from var.youpi.perso.aquilenet.fr (LFbn-ORL-1-236-13.w92-152.abo.wanadoo.fr [92.152.80.13]) by hera.aquilenet.fr (Postfix) with ESMTPSA id AF71A10648; Thu, 28 Dec 2017 22:27:35 +0100 (CET) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.90_RC4) (envelope-from ) id 1eUfiB-0006FJ-A2; Thu, 28 Dec 2017 22:27:35 +0100 Date: Thu, 28 Dec 2017 21:27:00 -0000 From: Samuel Thibault To: Simon Marchi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] hurd: Add enough auxv support for AT_ENTRY for PIE binaries Message-ID: <20171228212735.f6y6ywzhprrpnyod@var.youpi.perso.aquilenet.fr> References: <20171227154156.130174-1-samuel.thibault@ens-lyon.org> <30c5c1ec-2502-56a9-bf61-7848925e8f72@simark.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30c5c1ec-2502-56a9-bf61-7848925e8f72@simark.ca> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2017-12/txt/msg00518.txt.bz2 Hello, Simon Marchi, on mer. 27 déc. 2017 21:19:12 -0500, wrote: > If nobody has commented by the time we are > ready to create the 8.1 branch (supposed to be in January), we'll > merge it. I'll add a note to the GDB 8.1 release wiki page [1] so > we don't forget. Does that sound good to you? Sure. > In the mean time, I'd like to add some details to the commit message > about how this is expected to work. The AT_ENTRY value set here > will be read by the svr4_exec_displacement function, is that right? Yes, here is the backtrace: #0 gnu_xfer_partial (ops=0x867cb78, object=TARGET_OBJECT_AUXV, annex=0x0, readbuf=0x8787250 "", writebuf=0x0, offset=0, len=4096, xfered_len=0x28043e0) at ./gdb/gnu-nat.c:2615 #1 0x081f09a7 in target_xfer_partial (ops=0x863d440 , object=TARGET_OBJECT_AUXV, annex=0x0, readbuf=0x8787250 "", writebuf=0x0, offset=0, len=, xfered_len=0x28043e0) at ./gdb/target.c:1374 #2 0x081f0e32 in target_read_partial (xfered_len=0x28043e0, len=4096, offset=0, buf=0x8787250 "", annex=0x0, object=TARGET_OBJECT_AUXV, ops=0x863d440 ) at ./gdb/target.c:1619 #3 target_read_alloc_1 (ops=0x863d440 , object=TARGET_OBJECT_AUXV, annex=annex@entry=0x0, buf_p=0x87721e8, padding=0) at ./gdb/target.c:1988 #4 0x081f1f21 in target_read_alloc (ops=, object=, annex=0x0, buf_p=0x87721e8) at ./gdb/target.c:2029 #5 0x0812022f in get_auxv_inferior_data (ops=ops@entry=0x863d440 ) at ./gdb/auxv.c:362 #6 0x081206a1 in target_auxv_search (ops=0x863d440 , match=9, valp=0x28044d0) at ./gdb/auxv.c:382 #7 0x08068c7f in svr4_exec_displacement (displacementp=) at ./gdb/solib-svr4.c:2649 #8 svr4_relocate_main_executable () at ./gdb/solib-svr4.c:3031 #9 0x0806a828 in svr4_solib_create_inferior_hook (from_tty=0) at ./gdb/solib-svr4.c:3092 #10 0x0819490b in post_create_inferior (target=, from_tty=) at ./gdb/infcmd.c:445 #11 0x08194c5f in run_command_1 (args=, from_tty=1, tbreak_at_main=) at ./gdb/infcmd.c:631 ... Samuel