From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27317 invoked by alias); 10 Jun 2003 12:26:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27237 invoked from network); 10 Jun 2003 12:26:25 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.54) by sources.redhat.com with SMTP; 10 Jun 2003 12:26:25 -0000 Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA20732; Tue, 10 Jun 2003 13:26:24 +0100 (BST) Received: from pc960.cambridge.arm.com (rearnsha@localhost) by pc960.cambridge.arm.com (8.11.6/8.9.3) with ESMTP id h5ACQOs02766; Tue, 10 Jun 2003 13:26:24 +0100 Message-Id: <200306101226.h5ACQOs02766@pc960.cambridge.arm.com> X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha owned process doing -bs To: "Kris Warkentin" cc: Richard.Earnshaw@arm.com, "Kevin Buettner" , "Gdb@Sources.Redhat.Com" Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: problem with fetch_link_map_offsets In-reply-to: Your message of "Tue, 10 Jun 2003 08:21:30 EDT." <047001c32f4a$d31eead0$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 10 Jun 2003 12:26:00 -0000 From: Richard Earnshaw X-SW-Source: 2003-06/txt/msg00156.txt.bz2 > > > Yeah but....a QNX binary is just an ordinary elf binary. There are no > > > special sections or magic in there for the sniffer to catch. Hence my > > > problem. Perhaps it should be returning unknown so that another sniffer > > > (like my one liner) could get it? > > > > > > > NetBSD binaries look like ordinary ELF too, as do Linux. The only way to > > resolve this is to arange for the crt0.o file to contain some magic that > > GDB can find. Normally this is a special .note section. > > > > Can you not arrange for QNX binaries to have such a note and then add > that. > > Perhaps. I'll have to talk to some of the folk here. I think it would be > really handy to be able to recognize one of our binaries. Thanks for the > suggestion. > The note has other uses, too. For example, it can be used to ensure that the kernel doesn't run applications that are intended for another platform, or to enable an emulation mode if running such an app, or even to give backwards compatibility if the kernel/user ABI changes. R.