This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] Define various OS/ABI note types


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]