From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31952 invoked by alias); 7 May 2002 23:12:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31497 invoked from network); 7 May 2002 23:11:45 -0000 Received: from unknown (HELO dragon.nuxi.com) (66.92.13.169) by sources.redhat.com with SMTP; 7 May 2002 23:11:45 -0000 Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g47NBiev031537; Tue, 7 May 2002 16:11:44 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g47NBiP4031536; Tue, 7 May 2002 16:11:44 -0700 (PDT) Date: Tue, 07 May 2002 16:12:00 -0000 From: "David O'Brien" To: Jason R Thorpe , binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFA] Define various OS/ABI note types Message-ID: <20020507161144.B31482@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <20020507131833.M503@dr-evil.shagadelic.org> <20020507152801.A30973@dragon.nuxi.com> <20020507155811.T503@dr-evil.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020507155811.T503@dr-evil.shagadelic.org>; from thorpej@wasabisystems.com on Tue, May 07, 2002 at 03:58:11PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 X-SW-Source: 2002-05/txt/msg00184.txt.bz2 On Tue, May 07, 2002 at 03:58:11PM -0700, Jason R Thorpe wrote: > On Tue, May 07, 2002 at 03:28:01PM -0700, David O'Brien wrote: > > > Please add the FreeBSD .note.ABI-tag if you are going to do this. > > FreeBSD has a .note.ABI-tag with note type "1", vendor "FreeBSD", and > > description that is a 6-digit number encoding major and minor version. > > I can't find the actual definition of the version number encoding in > the FreeBSD header files. The definition comes from src/lib/csu/common/crtbrand.c. static const struct { int32_t namesz; int32_t descsz; int32_t type; char name[sizeof "FreeBSD"]; int32_t desc; } abitag __attribute__ ((section (.note.ABI-tag))) = { sizeof "FreeBSD", sizeof(int32_t), 1, "FreeBSD", __FreeBSD_version }; Where __FreeBSD_version is in sys/param.h. On FreeBSD 5-CURRENT it is 500034 right now. (I guess we actually have a 7-digit encoding)