Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "David O'Brien" <obrien@FreeBSD.org>
To: Jason R Thorpe <thorpej@wasabisystems.com>,
	binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [PATCH/RFA] Define various OS/ABI note types
Date: Tue, 07 May 2002 16:12:00 -0000	[thread overview]
Message-ID: <20020507161144.B31482@dragon.nuxi.com> (raw)
In-Reply-To: <20020507155811.T503@dr-evil.shagadelic.org>; from thorpej@wasabisystems.com on Tue, May 07, 2002 at 03:58:11PM -0700

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)


  reply	other threads:[~2002-05-07 23:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07 13:18 Jason R Thorpe
2002-05-07 15:28 ` David O'Brien
2002-05-07 15:58   ` Jason R Thorpe
2002-05-07 16:12     ` David O'Brien [this message]
2002-05-07 16:30       ` Jason R Thorpe
2002-05-07 16:57         ` David O'Brien
2002-05-07 22:33   ` Jason R Thorpe
2002-05-08  3:21     ` Nick Clifton
2002-05-08 11:23     ` David O'Brien
2002-05-08 11:40       ` Jason R Thorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020507161144.B31482@dragon.nuxi.com \
    --to=obrien@freebsd.org \
    --cc=binutils@sources.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=thorpej@wasabisystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox