Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2018 22:02:41 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: FreeBSD elf_machine_id
Message-ID:  <CALM2mEm1p=iq4BuGOgEJ%2B8hhmSmRtcwNFFa4b-BcWO1aSgy0SQ@mail.gmail.com>
In-Reply-To: <CALM2mEmqy4wUvzQbeY5PmL1iwZuYBHM9XZYzPd5xS3i9Ce2XDw@mail.gmail.com>
References:  <CALM2mEmySWV-fVaFtrADi35=2ifL4YgeLWfuXHx9Q6c5SGjd7A@mail.gmail.com> <A1CEB6C9-5927-40CF-B0CE-B006B2A08574@FreeBSD.org> <CALM2mEmqy4wUvzQbeY5PmL1iwZuYBHM9XZYzPd5xS3i9Ce2XDw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 12, 2018 at 9:59 PM blubee blubeeme <gurenchan@gmail.com> wrote:

>
>
> On Sun, Aug 12, 2018 at 7:43 PM Dimitry Andric <dim@freebsd.org> wrote:
>
>> On 12 Aug 2018, at 13:21, blubee blubeeme <gurenchan@gmail.com> wrote:
>> >
>> > What's the elf_machine_id for FreeBSD amd64 systems?
>> >
>> > How can I find this info?
>>
>> There isn't any FreeBSD-specific machine ID, just a machine ID for
>> x86-64 (aka amd64) in general:
>>
>> $ grep x86-64 /usr/include/sys/elf_common.h
>> #define EM_X86_64       62      /* Advanced Micro Devices x86-64 */
>> #define EM_AMD64        EM_X86_64       /* Advanced Micro Devices x86-64
>> (compat) */
>>
>> -Dimitry
>>
>> Thank you for the clarification.
>
> I think in this case I was looking for 62.
>
> Best,
> Owen
>
Actually I had another quick question along these lines.

if x86_64 is already defined should I bother changing those to amd64 or
just use x86_64 and make FreeBSD modifications where Linux specifics are
defined?

Best,
Owen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEm1p=iq4BuGOgEJ%2B8hhmSmRtcwNFFa4b-BcWO1aSgy0SQ>