From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26283 invoked by alias); 7 Nov 2002 21:45:49 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 26261 invoked from network); 7 Nov 2002 21:45:48 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.163.212.31) by sources.redhat.com with SMTP; 7 Nov 2002 21:45:48 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id BEE79357E; Thu, 7 Nov 2002 13:45:47 -0800 (PST) Received: (from roland@localhost) by magilla.sf.frob.com (8.11.6/8.11.6) id gA7Ljlb28956; Thu, 7 Nov 2002 13:45:47 -0800 Date: Thu, 07 Nov 2002 13:45:00 -0000 Message-Id: <200211072145.gA7Ljlb28956@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: davidm@hpl.hp.com Cc: libc-hacker@sources.redhat.com Subject: Re: [PATCH] move __gmon_start__ call out of .init section In-Reply-To: David Mosberger's message of Tuesday, 29 October 2002 23:22:12 -0800 <200210300722.g9U7MCXs000818@napali.hpl.hp.com> X-Shopping-List: (1) Algebraic savage monkeys (2) Irreverent salmon revulsion (3) Simultaneous retentives (4) Luxuriant pubescent console chowder (5) Civil commotions X-SW-Source: 2002-11/txt/msg00023.txt.bz2 > The patch below changes the ia64 initfini.c such that the call to > __gmon_start__ is done via the .init_array section (if available). > The idea here is to keep the .init/.fini empty (apart from > prologue/epilogue) so as to ensure that the unwind info is always > correct. Can you elaborate a bit on the problem you are addressing here? This seems wrong to me, in that the user program might put some code into the .init section and then __gmon_start__ would come after it instead of before.