From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16249 invoked by alias); 11 Jun 2003 17:20:58 -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 15148 invoked from network); 11 Jun 2003 17:20:30 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 11 Jun 2003 17:20:30 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id NAA13843; Wed, 11 Jun 2003 13:14:22 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id NAA17250; Wed, 11 Jun 2003 13:20:26 -0400 Message-ID: <09cc01c3303d$ca16b550$0202040a@catdog> From: "Kris Warkentin" To: Cc: "Gdb@Sources.Redhat.Com" , References: <200306111644.h5BGiLB13107@pc960.cambridge.arm.com> Subject: Re: Elf OS ABI Number Date: Wed, 11 Jun 2003 17:20:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-06/txt/msg00185.txt.bz2 > > Does anyone know how to get one of these? I was rooting around on Caldera's > > website but didn't see anything. I've realized that we need to have a > > practical way to identify QNX binaries and this looks like the way to go. > > > > A fairly common question, to which most times the answer is that you don't > need one. > > You should only be using the OS ABI field if you are changing the meaning > of the ELF specifics for a processor (new relocs, for example) which a > linker not trained to recognise these would be unable to handle. It > shouldn't be used to represent things that are encoded in the instructions > inside sections (eg library calls specific to your OS, etc). Actually, we do have a few things that are different - QNX specific relocations, different MIPS ABI, etc. It seems like having the ABI number can do no harm but can certainly be useful. The problem with things like .note sections for identifying binaries is that a stripped binary can no longer be identified. cheers, Kris